(message_info)
:type message_info: wechat_django.models.WeChatMessageInfo
:type message_info: wechat_django.models.WeChatMessageInfo
: type message_info : wechat_django . models . WeChatMessageInfo
def matches(message_info):
        """
        :type message_info: wechat_django.models.WeChatMessageInfo
        """
        handlers = message_info.app.message_handlers\
            .prefetch_related("rules").all()
        for handler in handlers:
            if handler.is_match(message_info):
                return (handler, )
def matches ( message_info ) : handlers = message_info . app . message_handlers . prefetch_related ( "rules" ) . all ( ) for handler in handlers : if handler . is_match ( message_info ) : return ( handler , )