i want to make a bot that will forward message from business chat to bot.
import telebot
TOKEN = ''
bot = telebot.TeleBot(TOKEN)
TO_CHAT_ID = tg_id
@bot.business_message_handler(content_types=["photo", "text", "video", "audio", "emoji", "document", "sticker"])
def send_text(message):
bot.forward_message(TO_CHAT_ID, message.chat.id, message.message_id)
if __name__ == '__main__':
bot.polling(none_stop=True)
Here’s how i wanted to do. But it’s not working
I tried to do something but nothing happens
New contributor
Zet is the self is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.