Skip to content

Telegram Bot stops processing updates after awhile #495

@benlhy

Description

@benlhy

Hello, I recently ran into the issue of my Telegram Bot not responding to updates. I set up debug logging and noticed that after getting updates, the bot does not process them. This usually occurs after the bot has been running for awhile (30 minutes or so).

Logs:
2016-12-31 19:19:10,915 - telegram.bot - DEBUG - Exiting: getUpdates
2016-12-31 19:19:10,915 - telegram.bot - DEBUG - Entering: getUpdates
2016-12-31 19:19:10,953 - telegram.ext.dispatcher - DEBUG - Processing Update: ...
2016-12-31 19:19:10,962 - telegram.bot - DEBUG - Entering: sendMessage
2016-12-31 19:19:13,520 - telegram.bot - DEBUG - Getting updates: [678494921]
2016-12-31 19:19:13,521 - telegram.bot - DEBUG - [<telegram.update.Update object at 0x7591fff0>]
2016-12-31 19:19:13,522 - telegram.bot - DEBUG - Exiting: getUpdates
2016-12-31 19:19:13,522 - telegram.bot - DEBUG - Entering: getUpdates
2016-12-31 19:19:17,573 - telegram.bot - DEBUG - Getting updates: [678494922]
2016-12-31 19:19:17,575 - telegram.bot - DEBUG - [<telegram.update.Update object at 0x75940330>]

At this point I attempted to end the script by hitting CTRL-C

2016-12-31 19:32:13,272 - JobQueue - DEBUG - JobQueue thread stopped
2016-12-31 19:32:13,273 - telegram.ext.updater - DEBUG - Stopping Updater and Dispatcher...
2016-12-31 19:32:13,274 - telegram.ext.updater - DEBUG - Requesting Dispatcher to stop...
2016-12-31 19:32:16,752 - telegram.bot - DEBUG - No new updates found.
2016-12-31 19:32:16,752 - telegram.bot - DEBUG - []
2016-12-31 19:32:16,753 - telegram.bot - DEBUG - Exiting: getUpdates
2016-12-31 19:32:16,753 - telegram.ext.updater - DEBUG - updater - ended

At this point the logging stopped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions