Šis objekts definē ziņojuma veidni.
Code Block |
---|
{
"type": "text",
"resource": {
"parameters": {...}
}
} |
ziņojuma veids “unknown“
Code Block |
---|
{
"parameters": {}
} |
ziņojuma veids “contact“
Code Block |
---|
{
"parameters": {
"fullName": "Oleksandr Serdiuk",
"phoneNumber": "380950117700"
}
} |
ziņojuma veids “file“
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/logo.png"
}
} |
ziņojuma veids “link“
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com"
}
} |
ziņojuma veids “location“
Code Block |
---|
{
"parameters": {
"title": "Kiev, Ukraine",
"latitude": 38.1077,
"longitude": 33.9910
}
} |
ziņojuma veids “picture“
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/logo.png"
}
} |
ziņojuma veids “text“
Code Block |
---|
{
"parameters": {
"content": "Hello world!"
}
} |
ziņojuma veids “video“
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/video/play.mp4"
}
} |
ziņojuma veids “animation“
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/preview.gif"
}
} |
ziņojuma veids “audio“
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/call.mp3"
}
} |
ziņojuma veids “voice“
Code Block |
---|
{
"parameters": {
"url": "https://smartsender.com/img/record.mp3"
}
} |
ziņojuma veids “mediaGroup“
Code Block |
---|
{
"parameters": {
"urls": Picture[] | Video[]
}
} |
ziņojuma veids “venue“
Code Block |
---|
{
"parameters": {
"title": "Kiev, Ukraine",
"address": "Panasa Myrnoho 19, apt 101",
"latitude": 38.1077,
"longitude": 33.9910
}
} |