SendRichMessageDraft

data class SendRichMessageDraft(val chatId: ChatId, val draftId: Long, val richMessage: InputRichMessage, val threadId: MessageThreadId? = chatId.threadId) : SimpleRequest<Unit>

Use this method to stream a partial rich message to a user while the message is being generated. The streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, SendRichMessage must be called with the complete message to persist it in the user's chat.

See also

Constructors

Link copied to clipboard
constructor(chatId: ChatId, draftId: Long, richMessage: InputRichMessage, threadId: MessageThreadId? = chatId.threadId)

Properties

Link copied to clipboard
Link copied to clipboard

Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier are animated.

Link copied to clipboard
open override val requestSerializer: <Error class: unknown class><out <Error class: unknown class>>
Link copied to clipboard
open override val resultDeserializer: <Error class: unknown class><Unit>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun method(): String