From 1dc4edeacec6f6aed9803693bfc6b358ac8a744c Mon Sep 17 00:00:00 2001 From: nullmatawasoradesu <119107850+wakaree@users.noreply.github.com> Date: Mon, 7 Aug 2023 13:27:38 +0300 Subject: [PATCH] Added a few words about skipping pending updates --- docs/migration_2_to_3.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/migration_2_to_3.rst b/docs/migration_2_to_3.rst index 6fc90f7c..a73885fe 100644 --- a/docs/migration_2_to_3.rst +++ b/docs/migration_2_to_3.rst @@ -40,6 +40,7 @@ Dispatcher from now if you want to get current bot instance inside handlers or filters you should accept the argument :code:`bot: Bot` and use it instead of :code:`Bot.get_current()` Inside middlewares it can be accessed via :code:`data["bot"]`. +- Now to skip pending updates, you should call the `deleteWebhook `_ method directly instead of passing :code:`skip_updates=True` to start polling method. Filtering events