mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Changed skip updates method (#842)
This commit is contained in:
parent
bb1c774bcc
commit
4a4eb51bd4
1 changed files with 3 additions and 3 deletions
|
|
@ -216,11 +216,11 @@ class Dispatcher(DataMixin, ContextInstanceMixin):
|
|||
async def skip_updates(self):
|
||||
"""
|
||||
You can skip old incoming updates from queue.
|
||||
This method is not recommended to use if you use payments or you bot has high-load.
|
||||
This method is not recommended for using in production.
|
||||
|
||||
:return: None
|
||||
Note that the webhook will be deleted!
|
||||
"""
|
||||
await self.bot.get_updates(offset=-1, timeout=1)
|
||||
await self.bot.delete_webhook(drop_pending_updates=True)
|
||||
|
||||
async def process_updates(self, updates, fast: bool = True):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue