import telebot
import pandas as pd
TOKEN = '972378863:AAEq29oLt61234sdfsdf3pQ1tXRpzmM'
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(content_types=['photo'])
def handle_photo(message):
file_id = message.photo[-1].file_id
for chat_id in chats_ids:
bot.send_photo(chat_id, file_id)
@bot.message_handler(content_types=['document'])
def handle_document(message):
file_id = message.document.file_id
for chat_id in chats_ids:
bot.send_document(chat_id, file_id)
file_data = pd.read_excel('./tgid.xlsx')
# Читаем id из колонки chat_id
chats_ids = file_data['chat_id'].tolist()
bot.polling()