コード例 #1
0
ファイル: action_listners.py プロジェクト: aa3pankaj/PexaBot
 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)
コード例 #2
0
ファイル: action_listners.py プロジェクト: aa3pankaj/PexaBot
 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({})