wcferry.wxmsg

Module Contents

Classes

WxMsg

微信消息

class wcferry.wxmsg.WxMsg(msg: wcferry.wcf_pb2.WxMsg)

微信消息

type

消息类型,可通过 get_msg_types 获取

Type:

int

id

消息 id

Type:

str

xml

消息 xml 部分

Type:

str

sender

消息发送人

Type:

str

roomid

(仅群消息有)群 id

Type:

str

content

消息内容

Type:

str

thumb

视频或图片消息的缩略图路径

Type:

str

extra

视频或图片消息的路径

Type:

str

from_group() bool

是否群聊消息

from_self() bool

是否自己发的消息

is_at(wxid) bool

是否被 @:群消息,在 @ 名单里,并且不是 @ 所有人

is_text() bool

是否文本消息