Changed skip updates method

This commit is contained in:
Alex Root Junior 2022-02-19 14:11:44 +02:00
parent bb1c774bcc
commit 7ce25d1630
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -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):
"""