From 6d6bcd0a9b5fad152d7dba196499a4229ee294b9 Mon Sep 17 00:00:00 2001 From: nullmatawasoradesu <119107850+wakaree@users.noreply.github.com> Date: Mon, 7 Aug 2023 23:54:05 +0300 Subject: [PATCH] Added a few words about skipping pending updates (#1251) * Added a few words about skipping pending updates * Added changelog * Fixed typo --- CHANGES/1251.doc.rst | 1 + docs/migration_2_to_3.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 CHANGES/1251.doc.rst diff --git a/CHANGES/1251.doc.rst b/CHANGES/1251.doc.rst new file mode 100644 index 00000000..a1c437c0 --- /dev/null +++ b/CHANGES/1251.doc.rst @@ -0,0 +1 @@ +Added a few words about skipping pending updates diff --git a/docs/migration_2_to_3.rst b/docs/migration_2_to_3.rst index 6fc90f7c..483f4f8d 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 :class:`aiogram.methods.delete_webhook.DeleteWebhook` method directly instead of passing :code:`skip_updates=True` to start polling method. Filtering events