def get_all_games(call, bot, user_data): chat_id = call.message.chat.id games = func.get_all_history(chat_id) mes = "Ваши игры:\n" for i in games: mes += f"Dice #{i[1]} Сумма выигрыша {i[2]}\n" bot.send_message(chat_id, mes, reply_markup = menu.create_kb_retrun_main_dice())
def get_rating(call, bot, user_data): chat_id = call.message.chat.id count, all_users_count = func.get_rating(chat_id) bot.send_message( chat_id, f"Вы занимаете {count} место 🏆 из {all_users_count} пользователей👥", reply_markup=menu.create_kb_retrun_main_dice())
def help_dice(call, bot, user_data): chat_id = call.message.chat.id bot.send_message(chat_id, config.dice_help, reply_markup = menu.create_kb_retrun_main_dice())