Quantcast
Channel: Python Telegram bot - KeyError after running for a few hours - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Arman Ordookhani for Python Telegram bot - KeyError after running...

Error says there is no text key inside msg dict. Maybe it's some special telegram message that has no text or there is a bug in you code that delete text key in some cases. You could usecommand =...

View Article



Answer by ndmeiri for Python Telegram bot - KeyError after running for a few...

A KeyError is raised when a value is requested from a dict but the key does not exist in the dictionary.So, in your case, the msg dictionary does not have the key text.You should inspect your code to...

View Article

Python Telegram bot - KeyError after running for a few hours

I wrote a Telegram bot in Python, which is running on my Raspberry Pi (Raspbian). I eventually see an error after the bot has been running for a few hours.Before I post the complete code, could someone...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images