diff --git a/pyrogram/client/dispatcher/dispatcher.py b/pyrogram/client/dispatcher/dispatcher.py index 69425c08..2b597a72 100644 --- a/pyrogram/client/dispatcher/dispatcher.py +++ b/pyrogram/client/dispatcher/dispatcher.py @@ -182,13 +182,12 @@ class Dispatcher: (update.channel_id if is_channel else None) ) - self.dispatch( + await self.dispatch( pyrogram.Update( deleted_messages=(messages if not is_channel else None), deleted_channel_posts=(messages if is_channel else None) ) ) - elif isinstance(update, types.UpdateBotCallbackQuery): await self.dispatch( pyrogram.Update(