Skip to content

Instantly share code, notes, and snippets.

@qdot
Created June 4, 2016 04:00
Show Gist options
  • Save qdot/a82b6d1d7463540224e6f2428a54d5f7 to your computer and use it in GitHub Desktop.
Save qdot/a82b6d1d7463540224e6f2428a54d5f7 to your computer and use it in GitHub Desktop.
Error on update message about bot being removed from a group
2016-06-03 20:56:07,834 - telegram.bot - DEBUG - Getting updates: [802131457]
2016-06-03 20:56:07,834 - telegram.bot - DEBUG - [<telegram.update.Update object at 0x7f4150dd4828>]
2016-06-03 20:56:07,834 - telegram.ext.updater - ERROR - unhandled exception
Traceback (most recent call last):
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/ext/updater.py", line 105, in _thread_wrapper
target(*args, **kwargs)
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/ext/updater.py", line 219, in _start_polling
network_delay=network_delay)
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/bot.py", line 109, in decorator
result = func(self, *args, **kwargs)
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/bot.py", line 1223, in getUpdates
return [Update.de_json(x) for x in result]
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/bot.py", line 1223, in <listcomp>
return [Update.de_json(x) for x in result]
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/update.py", line 69, in de_json
data['message'] = Message.de_json(data.get('message'))
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/message.py", line 160, in de_json
data['from_user'] = User.de_json(data.get('from'))
AttributeError: 'Message' object has no attribute 'get'
Exception in thread updater:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/ext/updater.py", line 105, in _thread_wrapper
target(*args, **kwargs)
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/ext/updater.py", line 219, in _start_polling
network_delay=network_delay)
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/bot.py", line 109, in decorator
result = func(self, *args, **kwargs)
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/bot.py", line 1223, in getUpdates
return [Update.de_json(x) for x in result]
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/bot.py", line 1223, in <listcomp>
return [Update.de_json(x) for x in result]
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/update.py", line 69, in de_json
data['message'] = Message.de_json(data.get('message'))
File "/home/qdot/venvs/tgbot/lib/python3.4/site-packages/telegram/message.py", line 160, in de_json
data['from_user'] = User.de_json(data.get('from'))
AttributeError: 'Message' object has no attribute 'get'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment