added try/except for def get_genitive(_cap). Added new func for sending photo.
This commit is contained in:
parent
2774eaab85
commit
dcfed46e9f
1
main.py
1
main.py
|
@ -76,6 +76,7 @@ async def process_start_command(message: types.Message):
|
|||
]))
|
||||
await message.delete()
|
||||
|
||||
#new code
|
||||
@dp.callback_query_handler(lambda c: c.data == 'wheremenu')
|
||||
async def where_menu(call: types.CallbackQuery):
|
||||
await call.bot.send_photo(call.message.chat.id, photo=InputFile('templates/menu.jpg'), caption='Кнопка меню находится рядом')
|
||||
|
|
Loading…
Reference in New Issue