From f0e8de613aede2f0a1c893b2e081ae8da8a3351b Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 28 Oct 2017 13:24:35 +0300 Subject: [PATCH] Fix-fix-fix --- aiogram/dispatcher/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py index 8e26d04e..37c3ad87 100644 --- a/aiogram/dispatcher/__init__.py +++ b/aiogram/dispatcher/__init__.py @@ -126,14 +126,12 @@ class Dispatcher: return await self.edited_message_handlers.notify(update.edited_message) if update.channel_post: if has_context: - state = self.storage.get_state(chat=update.channel_post.chat.id, - user=update.channel_post.from_user.id) + state = self.storage.get_state(chat=update.channel_post.chat.id) context.set_value(USER_STATE, await state) return await self.channel_post_handlers.notify(update.channel_post) if update.edited_channel_post: if has_context: - state = self.storage.get_state(chat=update.edited_channel_post.chat.id, - user=update.edited_channel_post.from_user.id) + state = self.storage.get_state(chat=update.edited_channel_post.chat.id) context.set_value(USER_STATE, await state) return await self.edited_channel_post_handlers.notify(update.edited_channel_post) if update.inline_query: