wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
405 stars 67 forks source link

无法获取发送人name #216

Open wms888 opened 1 year ago

wms888 commented 1 year ago

msg.talker() 或者 msg.from(),有时候可以获取到,有时候获取不到 WechatifiedContactSelfImpl { _events: [Object: null prototype] {}, _eventsCount: 0, _maxListeners: undefined, id: '@xxxx', payload: { address: undefined, alias: '', avatar: '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=185320399&username=@xxxxx&skey=@xxxx', city: undefined, friend: true, gender: 0, id: '@xxxxx', name: false, phone: [], province: undefined, signature: '', star: false, type: 1, weixin: undefined },

}