mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
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:
parent
4e7c66726f
commit
6d6bcd0a9b
2 changed files with 2 additions and 0 deletions
1
CHANGES/1251.doc.rst
Normal file
1
CHANGES/1251.doc.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Added a few words about skipping pending updates
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue