From b97df1b081be0f1af50d5b372283ff2d0bde0f55 Mon Sep 17 00:00:00 2001 From: Anthony Byuraev Date: Sat, 4 Jul 2020 21:11:47 +0300 Subject: [PATCH] Change `user`, `chat` in webhook_example --- examples/webhook_example_old.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/webhook_example_old.py b/examples/webhook_example_old.py index 0f6ae3cd..557f5278 100644 --- a/examples/webhook_example_old.py +++ b/examples/webhook_example_old.py @@ -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: