Bot

Search one chat

Searches messages within exactly one accessible chat, newest first.

post/bot/searchMessages

Headers

authorizationstring required

Required bot token using the Bearer scheme.

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.

querystring required
filter'photo' | 'video' | 'photo_video' | 'document' | 'link' | 'voice'
offset_message_idinteger

A positive Inline message identifier

limitinteger

An integer that can be represented exactly by a JavaScript number

Response

Successful exact-message read or search response.

BotMessagesSuccess required— unresolved $ref

Changes