/** * @example * { * channel_id: "channel_id", * content: "content" * } */ export interface CreateMessagesRequest { /** A list of file attachments to include with the message, such as images or videos. */ attachments?: CreateMessagesRequest.Attachments.Item[] | null; /** Automatically detect URLs in the message and generate link previews. */ auto_detect_links?: boolean | null; /** The unique identifier of the channel or experience to send the message in. For example, 'exp_xxxxx' or 'feed_xxxxx'. */ channel_id: string; /** The body of the message in Markdown format. For example, 'Hello **world**'. */ content: string; /** A poll to attach to this message, allowing recipients to vote on options. */ poll?: CreateMessagesRequest.Poll | null; /** The unique identifier of the message this is replying to, creating a threaded reply. */ replying_to_message_id?: string | null; } export declare namespace CreateMessagesRequest { type Attachments = Attachments.Item[]; namespace Attachments { /** * Input for an attachment */ interface Item { /** The ID of an existing file object. */ id: string; } } /** * A poll to attach to this message, allowing recipients to vote on options. */ interface Poll { /** The options for the poll. Must have sequential IDs starting from 1 */ options: Poll.Options.Item[]; } namespace Poll { type Options = Options.Item[]; namespace Options { /** * Input type for a single poll option */ interface Item { /** Sequential ID for the poll option (starting from '1') */ id: string; /** The text of the poll option */ text: string; } } } }