skip to Main Content

socket.timeout on telegram bot.polling() – Telegram API

When I leave my program running for a few hours and then send a message to the bot it doesn't reply and after a while it generates the following error. Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/urllib3/connectionpool.py", line 445, in…

VIEW QUESTION

NameError: name 'startCommand' is not defined – PYTHON – Telegram API

from coinbase.wallet.client import Client from telegram import ParseMode from telegram.ext import CommandHandler, Defaults, Updater COINBASE_KEY = 'xxxxxxxxxxxx' COINBASE_SECRET = 'xxxxxxxxxxxx' TELEGRAM_TOKEN = 'xxxxxxxxxxxx' coinbase_client = Client(COINBASE_KEY, COINBASE_SECRET) #if __name__ == '__main__': updater = Updater(token=TELEGRAM_TOKEN, defaults=Defaults(parse_mode=ParseMode.HTML)) dispatcher = updater.dispatcher dispatcher.add_handler('start', startCommand)…

VIEW QUESTION
Back To Top
Search