Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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({})