You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The inconsistency in retrieving the weixin field from the WechatifiedContactImpl object is likely due to limitations in the Wechaty Puppet implementation or restrictions from the WeChat platform itself. The weixin field, intended to return a Weixin ID, and the id field, which is a unique identifier used by Wechaty and its underlying puppet, serve different purposes. The availability of the weixin field can be affected by the specific puppet's capabilities and the permissions granted to your bot by WeChat.
It's recommended to transition to using the handle() method instead of directly accessing the weixin field, although this does not guarantee the field's availability in every case. This issue arises from the puppet implementation or WeChat platform limitations, not from your code's logic.
For detailed implementation and to understand how WechatifiedContactImpl works, you might want to look into the Wechaty source code, specifically around the contact management sections.
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
WechatifiedContactImpl {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
id: 'wxid_o42elvr0ggen22',
payload: {
alias: '',
avatar: 'https://wx.qlogo.cn/mmhead/ver_1/UeYTB2Tcgic1r8Qxd4NhSc0TYxS4jicAI94liclkrETqqFJNB8swq64KblXTBcvIgvScXNbrnibNCiaLaicEbGpeHJMvibpwtkZxjwqb4ibkjopXolFXVD0bpduzeluECmsLjYBP/0',
city: '',
friend: false,
gender: 0,
id: 'wxid_o42elvr0ggen22',
name: '千夜',
phone: [],
province: '',
signature: '',
type: 1,
weixin: ''
},
[Symbol(kCapture)]: false
}
The text was updated successfully, but these errors were encountered: