

def on_close(self, exception):
    if isinstance(exception, telepot.helper.WaitTooLong):
        self.sender.sendMessage(('Game expired. The answer is %d' % self._answer))

dataset/ETHPy150Open nickoala/telepot/examples/guess.py Player.on_close/original