mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added a few words about skipping pending updates
This commit is contained in:
parent
73033643e7
commit
1dc4edeace
1 changed files with 1 additions and 0 deletions
|
|
@ -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 <https://docs.aiogram.dev/en/dev-3.x/api/methods/delete_webhook.html>`_ 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