-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New Feature] FriendRequest class and event #33
Comments
all done. :) |
great job, const sender : Contact = message.get('from')
const fr = new FriendRequest()
fr.send(sender, 'hello~') so, now we can add friend in rooms ,just instance a Contact from room.memberList? and ,has any idea to add friend with a giving wechat number? |
Yes, we have to get the sender there's no way to add a friend via their wechat number, because wechat web api did not support that. you can check this by login wechat web |
may be we should puppet the android version wechat , |
@JasLin wow... you caught me... how do you think? we could use webdriver/appium to puppet the wechat app in android/ios, through the emulator. and the emulator can run inside docker, so there will be no difficaulty to use(even the environment will be more complex than now). but I'm afraid recently I have no time to start this. if you are familar with the emulator, you are definitely welcome to have a try with PuppetAndroid! |
@zixia it could be very complex , forget it , just a joke :) |
@JasLin I think maybe it's not that complex... i.e. inject code to wechat as root, to skip the emulator check function in wechat? I don't know exactly, hope somebody will come someday, get it done. then everything will work like a charm. ;-) (I believe somebody is already do that: run wechaty inside emulator) Here's some link for run wechat inside emulator: |
@zixia yes, somebody is already do that:) |
according to #14
WxApp
Wechaty Class
FriendRequest
friend
event)Add Friend / Send Friend Request
accept friend requirest interface should be like this:
Event: Friend Request
friend request is a message from
SP_CONTACT_RECOMMEND_HELPER: "fmessage"
, with typeMessage.Type.VERIFYMSG
in
PuppetWeb.onServerMessage()
:then we can:
The text was updated successfully, but these errors were encountered: