Can I send two messages during WeChat development? One is text, the other is text, and subscribed

Source: Internet
Author: User
For example, for the question, thank you for the following code: Click the event section: echosprintf ($ template, $ this-& amp; gt; data [& #039; FromUserName & #039;], $ this-& amp; gt; data [& #039; ToUserName & #039;], time (); graphic information $ this-& amp; gt; text ($ this-& amp; gt; data, & quot; this is the message sent at the time of attention...

For example, thank you.
The Code is as follows:
// Click the event section:
Echo sprintf ($ template, $ this-> data ['fromusername'], $ this-> data ['tousername'], time (); // graphic information
$ This-> text ($ this-> data, "this is the message sent when you follow"); // text
Break;

Text function:

Reply content:

For example, thank you.
The Code is as follows:
// Click the event section:
Echo sprintf ($ template, $ this-> data ['fromusername'], $ this-> data ['tousername'], time (); // graphic information
$ This-> text ($ this-> data, "this is the message sent when you follow"); // text
Break;

Text function:

If you only use passive message reply, the answer is no.

In this case, you can consider alternative solutions. For example, if you send a piece of text, leave a link at the end of the text for the user to click. Or leave a keyword for the user to reply.

Of course, you can also automatically reply to a message and then actively reply or simulate login to push another message to the user.

But to be honest, in most cases this is not more useful than leaving a link behind a text message ~ (This sentence is written to the boss or operations girl who asks you to do this. ^_^)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.