This event is fired whenever a contact sends a message to your Telegram Bot.
{
"event": "message_received",
"timestamp": "2019-07-11T15:55:46.159Z",
"data": {
"id": "6555112239941832518",
"contact": {
"id": "6555112211957436097",
"name": "Han Solo"
},
"channel": {
"id": "6555093381403135744",
"type": "telegram"
},
"content": {
"payload": "Hello",
"type": "text"
},
"nlp": {...}
}
}
Parameter | Type | Description |
---|---|---|
data | object | Object representing message received. Different type of messages can be received (text, image, etc.). The structure matches Send Message response structure except for the nlp key which is valid only for received messages. |
data.contact | object | Check Contact for fields description. |