VoipMessage
语音/视频通话消息,继承自 Message。
属性
| 属性 | 类型 | 说明 |
|---|---|---|
content | str | 通话描述 |
sender | str | 发送者 |
source | Source | 消息来源 |
call_type | str | 通话类型("语音通话" / "视频通话") |
call_status | str | 通话状态(如通话时长或未接提示) |
type_label | str | 固定为 "通话消息" |
支持的操作
hover、scroll_to_visible、refresh、delete
示例
python
from pywxauto import Weixin, Event
wx = Weixin()
@wx.on(Event.VOIP)
def on_voip(weixin, chat, message):
print(f"通话记录: {message.call_type} - {message.call_status}")