Advertisement
Olegos

Fix repeat code

Oct 7th, 2022
1,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | Help | 0 0
  1.     if callback_query.message:
  2.             await bot.edit_message_text(
  3.                 chat_id=callback_query.message.chat.id,
  4.                 message_id=callback_query.message.message_id,
  5.                 text='Выберите группу:',
  6.                 reply_markup=keyboards.generate_keyboard_for_groups(groups['courses'][callback_query.data]))
  7.     elif callback_query.inline_message_id:
  8.             await bot.edit_message_text(
  9.                 inline_message_id=callback_query.inline_message_id,
  10.                 text='Выберите группу:',
  11.                 reply_markup=keyboards.generate_keyboard_for_groups(groups['courses'][callback_query.data]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement