'DictObject' object has no attribute 'text'
Crush becouse of image recieved. Python3. Traceback (most recent call last): File "/home/administrator/tgbot/tgbotenv/lib/python3.4/site-packages/DictObject-0.1.1-py3.4.egg/DictObject/init.py", line 434, in getattr AttributeError: 'DictObject' object has no attribute 'text'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/administrator/tgbot/tgbotenv/lib/python3.4/site-packages/DictObject-0.1.1-py3.4.egg/DictObject/init.py", line 441, in getattr KeyError: 'text'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tgbotmain.py", line 54, in
You can check existence with
if "text" in msg:
I will introduce real objects for messages and events soon, so you can assume existence.
The Message object's text attribute then might be None, but will exist.
The progress can be watched in the development branch.
This is happening in the developing branch.