mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Change user, chat in webhook_example
This commit is contained in:
parent
515b16ad8d
commit
b97df1b081
1 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ async def cmd_start(message: types.Message):
|
|||
|
||||
|
||||
async def cmd_about(message: types.Message):
|
||||
# In this function markdown utils are userd for formatting message text
|
||||
# In this function markdown utils are used for formatting message text
|
||||
return SendMessage(message.chat.id, text(
|
||||
bold('Hi! I\'m just a simple telegram bot.'),
|
||||
'',
|
||||
|
|
@ -62,7 +62,7 @@ async def cmd_about(message: types.Message):
|
|||
|
||||
async def cancel(message: types.Message):
|
||||
# Get current state context
|
||||
state = dp.current_state(chat=message.chat.id, user=message.from_user.id)
|
||||
state = dp.current_state(chat_id=message.chat.id, user_id=message.from_user.id)
|
||||
|
||||
# If current user in any state - cancel it.
|
||||
if await state.get_state() is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue