bot.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:ZloyBot 作者: Djaler 项目源码 文件源码
def process_update(obj, update):
    if isinstance(update, TelegramError):
        obj.dispatch_error(None, update)

    else:
        for group in obj.groups:
            for handler in obj.handlers[group]:
                try:
                    if handler.check_update(update):
                        handler.handle_update(update, obj)
                except Exception as e:
                    try:
                        obj.dispatch_error(update, e)
                    except Exception:
                        obj.logger.exception(
                            'An uncaught error was raised while '
                            'handling the error')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号