Example #1
0
def handle(update, context):
    logger = Logger()
    logger.getLogger().warning('Update "%s" caused error "%s"', update,
                               context.error)
Example #2
0
def main():
    logger = Logger()
    bot = Bot()

    logger.getLogger().debug('Initializing Telegram Bot')
    bot.run()