简体   繁体   中英

How to choose which contact to send to using wechat sdk

The wechat sdk allows us to send text messages to wechat contacts.

But how do we choose which contact to send to?

To share with WeChat contacts:

SendMessageToWXReq* req = [[[SendMessageToWXReq alloc] init]autorelease];
req.text = @"Your Text Message.";
req.bText = YES;
req.scene = WXSceneSession;
[WXApi sendReq:req];

You don't need to select the sender contact from your mobile app.

After [WXApi sendReq:req]; line of code wechat will open and show the user to select which contact to send the message.

AFAIK there is not way to chose the sender contact from mobile apps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM