mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Oops. (After code-review)
This commit is contained in:
parent
5f6af637e8
commit
0005618463
1 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ async def cmd_start(message: types.Message):
|
||||||
|
|
||||||
# You can use state '*' if you need to handle all states.
|
# You can use state '*' if you need to handle all states.
|
||||||
@dp.message_handler(state='*', commands=['cancel'])
|
@dp.message_handler(state='*', commands=['cancel'])
|
||||||
@dp.message_handler(state='*', func=lambda message: message.text.lower == 'cancel')
|
@dp.message_handler(state='*', func=lambda message: message.text.lower() == 'cancel')
|
||||||
async def cancel_handler(message: types.Message):
|
async def cancel_handler(message: types.Message):
|
||||||
"""
|
"""
|
||||||
Allow to cancel any action
|
Allow to cancel any action
|
||||||
|
|
@ -108,8 +108,8 @@ async def process_sex(message: types.Message):
|
||||||
|
|
||||||
# Remove keyboard
|
# Remove keyboard
|
||||||
markup = types.ReplyKeyboardRemove()
|
markup = types.ReplyKeyboardRemove()
|
||||||
# And send message
|
|
||||||
|
|
||||||
|
# And send message
|
||||||
await bot.send_message(message.chat.id, text(
|
await bot.send_message(message.chat.id, text(
|
||||||
text('Hi! Nice to meet you,', bold(data['name'])),
|
text('Hi! Nice to meet you,', bold(data['name'])),
|
||||||
text('Age:', data['age']),
|
text('Age:', data['age']),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue