Skip to main content
GET
Search messages

Authorizations

Authorization
string
header
required

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

Query Parameters

chat_id
integer
required

Chat ID to search in

q
string
required

Search query

Response

Matching messages

id
integer

Telegram message ID

chat_id
integer

Chat ID

bot_id
integer

Bot ID that received/sent this message

user_id
integer

Sender user ID

username
string

Sender username

first_name
string

Sender first name

last_name
string

Sender last name

text
string

Message text content

date
integer

Unix timestamp of the message

media_type
string

Media type if the message contains media (photo, video, animation, sticker, voice, audio, document, video_note) or callback for inline button interactions tracked as synthetic messages

file_id
string

Telegram file ID for media messages

reply_to_message_id
integer

ID of the message this is a reply to