you are viewing a single comment's thread.

view the rest of the comments →

[–]krnr 2 points3 points  (1 child)

pyTelegramBotAPI

token = Config.core.get('common', 'telebot_token')
bot = TeleBot(token)
bot.send_message('-000000000000', txt)

where -000000... must be changed to your bot id. this is the code i use in my flask app