SendRichMessageDraft

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

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
@SerialName(value = "chat_id")
val chatId: ChatId
Link copied to clipboard
@SerialName(value = "draft_id")
val draftId: Long

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: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<Unit>
Link copied to clipboard
@SerialName(value = "rich_message")
val richMessage: InputRichMessage
Link copied to clipboard
@SerialName(value = "message_thread_id")
val threadId: MessageThreadId?

Functions

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