How to use php Code to send messages in Group of Wechat official account template
This article mainly shows you "how to use php code to achieve Wechat official account template messages to send mass messages", the content is easy to understand, clear, hope to help you solve their doubts, the following let the editor lead you to study and learn "how to use php code to achieve Wechat official account template messages group sending" this article.
Wechat template messages can only be sent to one person. If you want to send messages in groups, you need to send them through the php loop in turn.
Note that if the template message is occasional and unstable, your access_token token update cache may be out of date and expired. It can be viewed according to the log file. It is recommended to update it in 300 seconds. Otherwise it will be very annoying.
The template id needs to be obtained after setting up the industry in the official account.