Skip to content

I don't want my bot to reply to offline messages #1676

Answered by coder2020official
MrsSAS asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!
Using skip_pending processes only last update, yes.
If you are so excited about skipping ALL updates, you can use delete_webhook, by passing drop_pending_updates=True.

Suggestion to your code
I recommend using bot.infinity_polling() instead of just polling. If you use simple polling, your bot may stop on system exception.
With infinity polling, this won't take place.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MrsSAS
Comment options

@coder2020official
Comment options

@MrsSAS
Comment options

@coder2020official
Comment options

Answer selected by MrsSAS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment