Incoming messages
This page describes the incoming (MO) messages you can receive from Viber users through the CM.com Messaging API.
For the generic behaviour of inbound messages across all channels, see Incoming messages.
The main difference from other channels is the fact that Viber uses a numeric identifier for the recipient of the MO message, a so-called "Viber Service ID".
Media Message
See also receiving media messages
Note
Please note that media URLs are valid for 30 days and won't contain content anymore afterwards.
End-users have the option to send a photo, video, document or sticker to your Viber business account.
- Image
- Including animated gifs
- Including (animated) stickers
- Video
- Documents
- Word document
- Excel spreadsheet
Example message
{
"reference": "my-reference",
"messageContext": "",
"from": {
"number": "0031612345678",
"name": ""
},
"to": {
"number": "12345"
},
"message": {
"text": "",
"media": {
"mediaUri": "https://cdn-2.messaging.cm.com/fileproxy/files/d74561737ba34eac9f42ff6196b2e1d3",
"contentType": "image/jpeg",
"title": "cm.png"
},
"custom": {
}
},
"groupings": ["", "", ""],
"time": "2024-03-29 15:00:00",
"timeUtc": "2024-03-29T13:00:00",
"channel": "Viber"
}