Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telebot
- import os
- bot = telebot.TeleBot("bottoken")
- for file in os.listdir('./TestFolder'):
- if file.endswith('.png'):
- current_photo = open(file, 'rb')
- bot.send_photo(chat_id=-1001308517159, photo=current_photo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement