Added a few words about skipping pending updates (#1251)

* Added a few words about skipping pending updates

* Added changelog

* Fixed typo
This commit is contained in:
nullmatawasoradesu 2023-08-07 23:54:05 +03:00 committed by GitHub
parent 4e7c66726f
commit 6d6bcd0a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
CHANGES/1251.doc.rst Normal file
View file

@ -0,0 +1 @@
Added a few words about skipping pending updates

View file

@ -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