Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x

This commit is contained in:
Alex Root Junior 2023-08-07 23:57:11 +03:00
commit 56e969660e
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
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