How to use the wechaty-puppet.FriendshipType.Verify function in wechaty-puppet

To help you get started, we’ve selected a few wechaty-puppet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wechaty / wechaty-puppet-padplus / src / pure-function-helpers / friendship-raw-payload-parser.ts View on Github external
function friendshipRawPayloadParserVerify (
  rawPayload: PadplusMessagePayload,
): FriendshipPayload {
  const payload: FriendshipPayloadVerify = {
    contactId : rawPayload.fromUserName,
    id        : rawPayload.msgId,
    timestamp : rawPayload.createTime,
    type      : FriendshipType.Verify,
  }
  return payload
}
github wechaty / wechaty / src / puppet-padchat / pure-function-helpers / friendship-raw-payload-parser.ts View on Github external
function friendshipRawPayloadParserVerify(
  rawPayload: PadchatMessagePayload,
): FriendshipPayload {
  const payload: FriendshipPayloadVerify = {
    id        : rawPayload.msg_id,
    contactId : rawPayload.from_user,
    type      : FriendshipType.Verify,
  }
  return payload
}