def test_ball_listener(bowler, match_id, chat_id): bot = BotDatabase(match_id) bot.current_bowler_update(bowler) match_info = bot.get_live_match_info() TelegramHelper.send_scoring_keyboard(chat_id, match_info)
def bowler_change_action_listener(bowler, match_id, chat_id): bot = BotDatabase(match_id) bot.current_bowler_update(bowler) match_info = bot.get_live_match_info() TelegramHelper.send_scoring_keyboard(chat_id, match_info) return json.dumps({})