Telegram Bot API

Use this method to stream a partial rich message to a user while the message is being generated. Note that the streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized, you must call sendRichMessage with the complete message to persist it in the user's chat. Returns True on success.

post/sendRichMessageDraft

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/sendRichMessageDraft
  • Auth: none declared

Request body

chat_idinteger required

Unique identifier for the target private chat

message_thread_idinteger

Unique identifier for the target message thread

draft_idinteger required

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

Response

Telegram API response

oktrue required
resulttrue required

Changes