Bot

Get exact messages

Returns up to 100 requested messages from one accessible chat, in request order.

post/bot{token}/getMessages

Path parameters

tokenstring required

Required bot token included in the URL path.

Headers

authorizationstring

Optional bot token using the Bearer scheme. When supplied, it takes precedence over the token in the URL.

Request body

user_idinteger

Target a private conversation with this user. Supply exactly one of user_id or chat_id.

chat_idinteger

Target this chat. Supply exactly one of chat_id or user_id.

message_idsMessageId[] required

Response

Successful exact-message read or search response.

BotMessagesSuccess required— unresolved $ref

Changes