Получить очередь сообщений к отправке
GET
/waInstance{{idInstance}}/showMessagesQueue/{{apiTokenInstance}}Документация ShowMessagesQueue
Request
None
Request samples
Responses
showMessagesQueue(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
array of:
messageID
string
required
type
string
required
body
object
required
chatId
string
required
message
string
optional
linkPreview
boolean
optional
quotedMessageId
string
optional
options
array [object {1}]
optional
fileName
string
optional
caption
string
optional
archive
boolean
optional
urlFile
string
optional
latitude
number
optional
longitude
number
optional
nameLocation
string
optional
address
string
optional
contact
object
optional
urlLink
string
optional
chatIdFrom
string
required
messages
array[string]
required
messagesIDs
array[string]
optional
ExampleshowMessagesQueue
[
{
"messageID": "BAE123456789",
"type": "sendMessage",
"body": {
"chatId": "11001234567@c.us",
"message": "I use Green-API to send this message to you!",
"linkPreview": true
}
},
{
"messageID": "BAE1234567123",
"type": "sendMessage",
"body": {
"chatId": "11001234567@c.us",
"message": "Hello",
"quotedMessageId": "BAE123456789",
"linkPreview": true
}
},
{
"messageID": "BAE5DE8CA912345",
"type": "sendPoll",
"body": {
"chatId": "11001234567@c.us",
"message": "Please choose the color:",
"options": [
{
"optionName": "green"
},
{
"optionName": "red"
}
]
}
},
{
"messageID": "BAE1234567789",
"type": "sendFileByUrl",
"body": {
"fileName": "test.jpg",
"chatId": "11001234567@c.us",
"quotedMessageId": "BAE1234567159",
"caption": "caption",
"archive": false,
"urlFile": "https://sw-media-out.storage.yandexcloud.net/1101123456/5005fe15-23ee-43ef-8535-35e1dff8315c.jpg"
}
},
{
"messageID": "BAE1234561230",
"type": "sendLocation",
"body": {
"chatId": "11001234567@c.us",
"latitude": 44.9370129,
"longitude": 89.8728409,
"nameLocation": "I'm here, come",
"address": "613123, Perm"
}
},
{
"messageID": "BAE1234567456",
"type": "sendContact",
"body": {
"chatId": "11001234567@c.us",
"contact": {
"phoneContact": 79001234568,
"firstName": "Артем",
"lastName": "Евпаторийский",
"middleName": "Петрович",
"company": "Велосипед"
}
}
},
{
"messageID": "BAE1234567891234",
"type": "sendLink",
"body": {
"chatId": "11001234567@c.us",
"urlLink": "https://green-api.com/docs/api/sending/SendLink/"
}
},
{
"messagesIDs": [
"BAE1234561256",
"BAE1234561278"
],
"type": "ForwardMessages",
"body": {
"chatId": "11001234567@g.us",
"chatIdFrom": "12036304684212345@g.us",
"messages": [
"BAE1234561296",
"BAE1234561205"
]
}
}
]
Last modified: 18 days ago