Skip to main content
GET
Search messages

授权

Authorization
string
header
必填

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

查询参数

chat_id
integer
必填

Chat ID to search in

q
string
必填

Search query

响应

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