(message)
return TextReply(content=text.encode())
:type message: wechat_django.models.WeChatMessageInfo
:type message: wechat_django.models.WeChatMessageInfo
: type message : wechat_django . models . WeChatMessageInfo
def custom_business(message):
    """
    :type message: wechat_django.models.WeChatMessageInfo
    """
    user = message.user
    msg = message.message
    text = "hello, {0}! we received a {1} message.".format(
        user, msg.type)
    return TextReply(content=text.encode())
def custom_business ( message ) : user = message . user msg = message . message text = "hello, {0}! we received a {1} message." . format ( user , msg . type ) return TextReply ( content = text . encode ( ) )