SendMessage
Send a new message to a chat. Request:messages.SendMessage → Response: messages.SentMessage
Reference to the target chat (user, channel, or group)
Message text content
Snowflake ID of message to reply to (optional)
Array of media attachments (optional)
Array of text formatting entities (optional)
SentMessage
Snowflake ID of the newly created message
EditMessage
Edit an existing message. Request:messages.EditMessage → Response: ()
Reference to the chat containing the message
Snowflake ID of the message to edit
New message text (optional)
Whether to remove all media attachments
Replacement media attachments (optional)
Replacement entities (replaces if not empty or if message is set)
ForwardMessage
Forward message(s) to another chat. Request:messages.ForwardMessage → Response: ()
Destination chat reference
Source chat reference
Array of message snowflake IDs to forward
DeleteMessage
Delete one or more messages. Request:messages.DeleteMessage → Response: ()
Reference to the chat containing the messages
Array of message snowflake IDs to delete
GetHistory
Retrieve message history with pagination. Request:messages.GetHistory → Response: messages.Messages
Reference to the chat
Number of messages to return (default: 50, split when using around)
One of:
since (fixed64), before (fixed64), or around (fixed64)Messages
Array of message objects
Array of user objects referenced in messages
Array of community members (for community channels)
Array of reaction data for messages
Search
Search messages in a chat. Request:messages.Search → Response: messages.Messages
Chat to search in
Search query text
If true, search only the specific channel; if false, search entire parent
One of:
since (fixed64) or before (fixed64) for paginationGetEmbedPreview
Generate embed preview for URLs in message. Request:messages.GetEmbedPreview → Response: media.MediaEmbed
Message text containing URLs
Array of message entities
ReportMessage
Report a message for moderation. Request:messages.ReportMessage → Response: ()
Snowflake ID of the message to report
Reference to the chat containing the message
Reason for the report