mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Fix-fix-fix
This commit is contained in:
parent
e6e7ebbf85
commit
f0e8de613a
1 changed files with 2 additions and 4 deletions
|
|
@ -126,14 +126,12 @@ class Dispatcher:
|
||||||
return await self.edited_message_handlers.notify(update.edited_message)
|
return await self.edited_message_handlers.notify(update.edited_message)
|
||||||
if update.channel_post:
|
if update.channel_post:
|
||||||
if has_context:
|
if has_context:
|
||||||
state = self.storage.get_state(chat=update.channel_post.chat.id,
|
state = self.storage.get_state(chat=update.channel_post.chat.id)
|
||||||
user=update.channel_post.from_user.id)
|
|
||||||
context.set_value(USER_STATE, await state)
|
context.set_value(USER_STATE, await state)
|
||||||
return await self.channel_post_handlers.notify(update.channel_post)
|
return await self.channel_post_handlers.notify(update.channel_post)
|
||||||
if update.edited_channel_post:
|
if update.edited_channel_post:
|
||||||
if has_context:
|
if has_context:
|
||||||
state = self.storage.get_state(chat=update.edited_channel_post.chat.id,
|
state = self.storage.get_state(chat=update.edited_channel_post.chat.id)
|
||||||
user=update.edited_channel_post.from_user.id)
|
|
||||||
context.set_value(USER_STATE, await state)
|
context.set_value(USER_STATE, await state)
|
||||||
return await self.edited_channel_post_handlers.notify(update.edited_channel_post)
|
return await self.edited_channel_post_handlers.notify(update.edited_channel_post)
|
||||||
if update.inline_query:
|
if update.inline_query:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue