GET graph.user.messages ✎ Edit on GitHub
Get chat messages by chat ID
Chat ID in a chat:id format
Timestamp of the latest created message
Timestamp of the first created message
Amount of messages to return
Include deleted messages in response. If this feature is required please send a request to firstname.lastname@example.org. Group ID should be specified in a request
It must be noted tha messages are sorted by time of their creation in descending order. Therefore from parameter must be greater than to parameter.
Messages from a specific chat can be acquired via this method and chat ID can be set as a PATH parameter or as a GET=parameter.
Chat ID as a PATH parameter
Chat Id as a GET parameter
Following attachments types can be a part of message:
- type=IMAGE - image attachment;
- type=VIDEO - video attachment (OK video or a link to i.e. youtube video);
- type=AUDIO - audio attachment (user recorded audio or link to a music track on OK);
- type=SHARE - a link share that was processed by our grabber.
In addition to user-created messages there exists a list of special service messages:
- user leaving a chat