Messages
List Telegram messages for a chat and account
Returns message history for the given chat as seen by the selected connected account.
get/v1/chats/{chat_id}/messages
Request
- Base URL: https://api.entergram.com (the document declares no server; this is the origin it was published from)
- URL: https://api.entergram.com/v1/chats/{chat_id}/messages
- Auth: API key in header X-API-Key
Path parameters
chat_idstring required
Canonical Telegram chat identifier.
Example:-1000001234567
Query parameters
account_idstring
Connected account id from the accounts endpoint used to scope the chat history request.
Example:acct_demo_123
limitinteger
Number of messages to return.
Example:50
before_message_idinteger
Fetch messages older than this Telegram message id.
Example:123456
thread_idinteger
Reserved for forum topics. Not supported yet.
Example:77
Response
OK
Example response
{
"data": {
"items": [
{
"actionType": "setMessagesTTL",
"messageType": "system"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.