Bot
Get chat history
Returns a page of messages from a private conversation or chat. Supply exactly one of user_id or chat_id, and use offset_message_id to request older messages.
get/bot/getChatHistory
Query parameters
user_idstring
A positive decimal Inline user identifier
Example:123456789
Target a private conversation with this user. Supply exactly one of user_id or chat_id.
chat_idstring
A positive decimal Inline chat identifier
Example:123456789
Target this chat. Supply exactly one of chat_id or user_id.
limitstring
A signed decimal integer string within JavaScript's safe-integer range
Example:42
Maximum number of messages to return.
offset_message_idstring
A positive decimal Inline message identifier
Example:123456789
Pagination cursor. When supplied, return messages older than this message.
Headers
authorizationstring required
Required bot token using the Bearer scheme.
Response
Successful getChatHistory response.
BotGetChatHistorySuccess required— unresolved $ref