dzakyputra / doggobot

A telegram bot, has a superpower to send you some random dog images.
MIT License
38 stars 33 forks source link

No error handlers are registeres, logging exception #5

Closed dcorreavi closed 3 years ago

dcorreavi commented 3 years ago

Hi! Thanks for this cool Bot. However, I'm getting the following error:

No error handlers are registered, logging exception.

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telegram/ext/dispatcher.py", line 432, in process_update handler.handle_update(update, self, check, context) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telegram/ext/handler.py", line 156, in handle_update return self.callback(update, context) File "/Users/dcorreavi/Dev/woofbot/main.py", line 12, in bop allowed_extension = ['jpg','jpeg','png'] AttributeError: 'CallbackContext' object has no attribute 'message'

dzakyputra commented 3 years ago

Hi, I am pretty sure that's because of the version of python-telegram-bot

You can try this method and see if it works --> https://stackoverflow.com/questions/60804083/python-telegram-bot-error-callbackcontext-object-has-no-attribute-message

dcorreavi commented 3 years ago

Hi! That worked. Thanks!