peyk.platforms.telegram.methods.send_rich_message_draft¶
- async peyk.platforms.telegram.methods.send_rich_message_draft(self, chat_id: int, draft_id: int | None = None, rich_message: InputRichMessage | None = None, *, text: str | None = None, message_thread_id: int | None = None, can_stop: bool | None = None, keep_on_stop: bool | None = None) bool¶
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.
- Parameters:
chat_id – Unique identifier for the target private chat
draft_id – Unique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier are animated.
rich_message – The partial message to be streamed. Direct upload of new files isn’t supported.
text – Value accepted by this operation.
message_thread_id – Unique identifier for the target message thread
can_stop – Value accepted by this operation.
keep_on_stop – Value accepted by this operation.
- Returns:
Result returned by Telegram on successful execution.
- Return type:
bool