Skip to content

Commit

Permalink
Fix telegram presser_user.admin
Browse files Browse the repository at this point in the history
  • Loading branch information
AlberLC committed Jun 27, 2022
1 parent 9221384 commit 1d3e8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multibot/bots/telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def _get_button_pressed_text(self, event: constants.TELEGRAM_EVENT) -> str

@return_if_first_empty(exclude_self_types='TelegramBot', globals_=globals())
async def _get_button_presser_user(self, event: constants.TELEGRAM_EVENT) -> User | None:
return await self._create_user_from_telegram_user(event.sender)
return await self._create_user_from_telegram_user(event.sender, event.chat.id)

@return_if_first_empty(exclude_self_types='TelegramBot', globals_=globals())
async def _get_chat(self, original_message: constants.TELEGRAM_MESSAGE) -> Chat | None:
Expand Down

0 comments on commit 1d3e8b7

Please sign in to comment.