def object_buttons(self, context, obj): buttons = [] if obj: buttons.append( InlineKeyboardButton("Оформление оплаты", callback_data='employee_payment')) return group_buttons(buttons, 1)
def object_buttons(self, context, obj): buttons = [] if obj: buttons.append( InlineKeyboardButton("Собаки кинологического кулба", callback_data='club_dogs')) return group_buttons(buttons, 1)
def object_buttons(self, context, obj): buttons = [] if obj: buttons.append(InlineKeyboardButton("Собаки кинологического кулба", callback_data='club_dogs')) buttons.append(InlineKeyboardButton("Удалить клуб", callback_data=f"delete_{self.menu_name}")) return group_buttons(buttons, 1)
def object_buttons(self, context, obj): buttons = [] if obj: buttons.append( InlineKeyboardButton("Оплата налогов", callback_data='taxation_payments')) buttons.append( InlineKeyboardButton("Работники службы", callback_data='service_employees')) return group_buttons(buttons, 1)
def object_buttons(self, context, obj): buttons = [] if obj: buttons.append( InlineKeyboardButton("Участие в соревнованиях", callback_data='dog_competitions')) buttons.append( InlineKeyboardButton("Удалить данные собаки", callback_data=f"delete_{self.menu_name}")) return group_buttons(buttons, 1)
def object_buttons(self, context, obj): buttons = [] if obj: buttons.append( InlineKeyboardButton("Изменить данные об образовании", callback_data='change_education')) buttons.append( InlineKeyboardButton("Оформление оплаты", callback_data='employee_payment')) buttons.append( InlineKeyboardButton("Удалить данные сотрудника", callback_data=f"delete_{self.menu_name}")) return group_buttons(buttons, 1)
def object_buttons(self, context, obj): buttons = [] if obj: buttons.append( InlineKeyboardButton( "Изменить данные о социальном положении хозяина", callback_data='change_social_position')) buttons.append( InlineKeyboardButton("Участие в соревнованиях", callback_data='dog_competitions')) buttons.append( InlineKeyboardButton("Удалить данные собаки", callback_data=f"delete_{self.menu_name}")) return group_buttons(buttons, 1)
def send_message(self, context): user = context.user_data['user'] buttons = [] buttons.append( InlineKeyboardButton("Работа с налоговыми службами", callback_data='taxation_services')) buttons.append( InlineKeyboardButton("Вернуться к главному меню", callback_data='start')) send_or_edit(context, chat_id=user.chat_id, text="Админ меню:", reply_markup=InlineKeyboardMarkup( group_buttons(buttons, 1)))
def object_buttons(self, context, obj): buttons = [] if obj: buttons.append( InlineKeyboardButton("Изменить тип службы", callback_data='change_type')) buttons.append( InlineKeyboardButton("Оплата налогов", callback_data='taxation_payments')) buttons.append( InlineKeyboardButton("Работники службы", callback_data='service_employees')) buttons.append( InlineKeyboardButton("Удалить службу", callback_data=f"delete_{self.menu_name}")) return group_buttons(buttons, 1)
def send_message(self, context): user = context.user_data['user'] buttons = [] buttons.append(InlineKeyboardButton("Работа с кинологическими клубами", callback_data='dog_training_clubs')) buttons.append(InlineKeyboardButton("Вернуться к главному меню", callback_data='start')) send_or_edit(context, chat_id=user.chat_id, text="Админ меню:", reply_markup=InlineKeyboardMarkup(group_buttons(buttons, 1)))