def handle(update, context): logger = Logger() logger.getLogger().warning('Update "%s" caused error "%s"', update, context.error)
def main(): logger = Logger() bot = Bot() logger.getLogger().debug('Initializing Telegram Bot') bot.run()