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
wechaty.on('friend',(contact,request)=>{if(!request){// this is a friend request confirmation event}else{// this is a friend request}})
After (v0.16 or above)
wechaty.on('friendship',request=>{switch(request.type()){caseFriendRequest.Type.RECEIVE:
// this is a friend request requestbreakcaseFriendRequest.Type.CONFIRM:
// this is a friend request confirmationbreak}})
The text was updated successfully, but these errors were encountered:
FriendRequest
class refactored.Before (v0.14 or below)
After (v0.16 or above)
The text was updated successfully, but these errors were encountered: