fixes based on review feedback

This commit is contained in:
Forevka 2021-07-03 15:18:16 +00:00 committed by GitHub
parent 2559d27ae9
commit 5e9c1e3413
3 changed files with 12 additions and 4 deletions

View file

@ -19,7 +19,15 @@ async def command_start_handler(message: Message) -> None:
This handler receive messages with `/start` command
"""
await message.answer(f"Hello, <b>{message.from_user.full_name}!</b>", reply_markup=InlineKeyboardMarkup(inline_keyboard=[[InlineKeyboardButton(text="Tap me, bro", callback_data="*")]]))
await message.answer(f"Hello, <b>{message.from_user.full_name}!</b>",
reply_markup=InlineKeyboardMarkup(
inline_keyboard=[
[
InlineKeyboardButton(text="Tap me, bro", callback_data="*")
]
]
)
)
@dp.chat_member()
@ -33,7 +41,6 @@ sub_router = Router()
async def callback_tap_me(callback_query: CallbackQuery) -> None:
await callback_query.answer("Yeah good, now i'm fine")
# this router will use only edited_message updates
sub_sub_router = Router()