


When an ordinary WeChat user sends a message to a public account, the WeChat server will POST the XML data packet of the message to the URL filled in by the developer.
Please note:
1. Regarding retry message duplication, it is recommended to use msgid to deduplicate messages.
2. If the WeChat server does not receive a response within five seconds, it will disconnect and re-initiate the request, retrying three times in total. If the server cannot guarantee to process and reply within five seconds,
can directly reply with an empty string. The WeChat server will not do anything with this and will not initiate a retry. For details, please see "Send Message-Passive Reply to Message".
3. If the developer needs to respond immediately to the user message within 5 seconds, that is, use the "Send Message-Passive Reply Message" interface to passively respond to the user When replying to a message, you can set message encryption in the Developer Center of the official website of the
public platform. After encryption is turned on, messages sent by users and messages replied by developers will be encrypted (but developers send them to users through customer service
interfaces and other API calls) messages are not affected). For detailed instructions on message encryption and decryption, please see "Sending Messages - Passive Reply Message Encryption and Decryption Instructions".
WeChat accepts picturesMessage interface and parameters:
<xml> <ToUserName><![CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[fromUser]]></FromUserName> <CreateTime>1348831860</CreateTime> <MsgType><![CDATA[image]]></MsgType> <PicUrl><![CDATA[this is a url]]></PicUrl> <MediaId><![CDATA[media_id]]></MediaId> <MsgId>1234567890123456</MsgId> </xml>
[Related recommendations]
1. WeChat public account platform source code download
2. Xiaozhu CMS Lifetong O2O system v2.0 exclusive version download
The above is the detailed content of WeChat develops interfaces and parameters for receiving picture messages. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Chinese version
Chinese version, very easy to use

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
