v1

latestOpenAPI 3.0.02026-07-14181255304.7 KB
Messages

Get messages by chat ID

The method contains a list of all received and sent messages in a particular chat. Sorting by descending date of message sending. You will need to specify Chat ID

get/messages/list/{ChatID}

Path parameters

ChatIDstring required

Chat ID

Chat ID

Query parameters

countnumber

Count of objects to return

offsetnumber

Offset of objects to return

time_fromnumber

Timestamp from which to get objects

time_tonumber

Timestamp up to which to get objects

normal_typesboolean

If false, include system messages

authorstring

Contact ID

To filter by author (Contact ID)

from_meboolean

If true, only return messages sent by the authenticated user. If false, only return messages sent by other users.

sort'asc' | 'desc'

Order for items in request

Response

OK

countinteger

Count of requested messages

totalinteger

Total number of returned messages

offsetinteger

Offset of requested messages

firstinteger

The index of the first message

lastinteger

The index of the last message