parse-message
v2.1.7
Published
Downloads
10
Readme
parse-message
Install
Install with npm:
$ npm install --save parse-message
Usage
var parse = require('parse-message');
API
Example
// const msg = { type: 43, text: '<xml></xml>' }
const msg = {
type: 43,
text: '<xml></xml>'
}
console.log(parse(msg));
Params
type
{Int}:
{
msg: 1,
img: 3,
speak: 34,
namecard: 42,
video_file: 43,
emoji: 47,
location: 48,
link: 49,
voip: 50,
wx_video: 62,
voip_chatroom: 64,
system: 10000,
system_notify: 10002,
custom_emoji: 1048625,
transfer: 419430449,
red_envelope: 436207665,
app_msg: 16777265,
location_sharing: -1879048186,
user_sharing: 16777265,
limit_sharing: 268435505,
notify_message: 318767153,
invite_member: 570425393,
gh_Type: 285212721
}
text
{Xml}: xml消息体