skip to Main Content

Python-telegram-bot fails on telegram.error.TimedOut, unable to restart (on restart get "coroutine 'Updater.start_polling' was never awaited")

I try to create a simple Telegram bot for my school (so students could receive schedule updates in Telegram). I use python-telegram-bot for this. Here is the code I took from the official tutorial: application = telegram.ext.ApplicationBuilder().token(token).build() incoming_message_handler = telegram.ext.MessageHandler(…

VIEW QUESTION

Telegram – When I use https://github.com/paulpierre/informer for this project, I encountered the following error:

Traceback (most recent call last): File "/home/informer-master1/app/bot.py", line 42, in <module> informer = TGInformer( File "/home/informer-master1/app/informer.py", line 145, in __init__ self.loop.run_until_complete(self.bot_interval()) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/home/informer-master1/app/informer.py", line 643, in bot_interval self.client = TelegramClient(session_file, self.account.account_api_id, self.account.account_api_hash)…

VIEW QUESTION
Back To Top
Search