added try/except for def get_genitive(_cap). Added new func for sending photo.

This commit is contained in:
qweeck 2024-03-02 03:24:33 +11:00
parent 2774eaab85
commit dcfed46e9f
1 changed files with 1 additions and 0 deletions

View File

@ -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='Кнопка меню находится рядом')