Skip to content

FriendRequest is not export to npm module  #50

@JasLin

Description

@JasLin

i'am trying v0.4.0 with npm install

how to get a FriendRequest instance while using require('wechaty') ?

const {Wechaty,Room,Contact,FriendRequest} = require('wechaty')

FriendRequest is undefined

i'am testing the following code.

const sender : Contact = message.get('from')
const fr = new FriendRequest()
fr.send(sender, 'hello~')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions