老鬼微信机器人HttpApi接口之消息接收

接口功能

官网:www.tjsbb.cn
QQ交流群:784455978

  • 将接收的消息, 发送至程序(主动消息接收地址)填写的接收地址 (POST方式),然后,接收地址返回规定的消息格式, 可以在自动回复内容. (可以发文字,文章,图片,视屏,音乐,名片,文件)

URL

  • 主动消息接收地址 : 支持 IP ( http://123.123.123.123/ ) , 域名 ( http://www.tjsbb.cn/ ) , 本地 Localhost ( http://localhost/ )

HTTP请求方式

  • POST

接收到的参数

参数名 类型 可能的值 说明
user String 机器人wxid
type String msg::chatroom/msg::single msg::single私聊 msg::chatroom群聊
Data JSONObject 消息体
+from_chatroom_wxid String 群ID
+from_member_wxid String 发送者wxid
+time 发送时间
+msg String(文本消息) 或 XML(图片、视频消息) 消息体
+from_chatroom_nickname String 群名称

文本示例

{  
"user":"wxid_7n5ja3kqp1522",  
"type":"msg::chatroom",  
"data":{  
        "data_type":"1",  
        "send_or_recv":"0+[收到]",  
        "from_chatroom_wxid":"23412636592@chatroom",  
        "from_member_wxid":"tianer415866",  
        "time":"2020-07-29 04:29:23",  
        "msg":"测试",  
        "msg_byte_hex":"B2E2CAD4",  
        "from_chatroom_nickname":"田源免费机器人体验群"  
    }  
}

图片示例

{  
"user":"wxid_7n5ja3kqp1522",  
"type":"msg::chatroom",  
"data":{  
        "data_type":"3",  
        "send_or_recv":"0+[收到]",  
        "from_chatroom_wxid":"23412636592@chatroom",  
        "from_member_wxid":"tianer415866",  
        "time":"2020-07-29 04:31:58",  
        "msg":"    ",  
        "msg_byte_hex":"3C3F786D6C2076657273696F6E3D22312E30223F3E0A3C6D73673E0A093C696D67206165736B65793D2234386633303438366539643966326336383763316531656564303730356232322220656E6372797665723D2230222063646E7468756D626165736B65793D223438663330343836653964396632633638376331653165656430373035623232222063646E7468756D6275726C3D223330353330323031303030343463333034613032303130303032303434346661363166373032303332663830323930323034356138333363623730323034356632313333666530343235363137353730363936643637356633303338363433393333333136343334333233323331333133363633363636343566333133353339333633303331333133353331333633383335333830323034303130383338303130323031303030343030222063646E7468756D626C656E6774683D223130363039222063646E7468756D626865696768743D22313230222063646E7468756D6277696474683D22313230222063646E6D69646865696768743D2230222063646E6D696477696474683D2230222063646E68646865696768743D2230222063646E686477696474683D2230222063646E6D6964696D6775726C3D22333035333032303130303034346333303461303230313030303230343434666136316637303230333266383032393032303435613833336362373032303435663231333366653034323536313735373036393664363735663330333836343339333333313634333433323332333133313336363336363634356633313335333933363330333133313335333133363338333533383032303430313038333830313032303130303034303022206C656E6774683D223339383835222063646E626967696D6775726C3D223330353330323031303030343463333034613032303130303032303434346661363166373032303332663830323930323034356138333363623730323034356632313333666530343235363137353730363936643637356633303338363433393333333136343334333233323331333133363633363636343566333133353339333633303331333133353331333633383335333830323034303130383338303130323031303030343030222068646C656E6774683D22343639353322206D64353D22623833343337383638303764646462306338333230373662643761376434336122202F3E0A3C2F6D73673E0A",  
        "from_chatroom_nickname":"田源免费机器人体验群"  
    }  
}

你可能感兴趣的:(老鬼微信机器人HttpApi接口之消息接收)