Bot

Search one chat

Searches messages within exactly one accessible chat, newest first.

post/bot{token}/searchMessages

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.

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