Skip to content

GramIO API Reference / gramio/dist / SendRichMessageDraftParams

Interface: SendRichMessageDraftParams

Defined in: @gramio/types/out/params.d.ts:4546

Params object for sendRichMessageDraft method

Properties

PropertyTypeDescriptionDefined in
can_stop?booleanPass True to show the user a button to stop further drafts. The bot will receive an Update “stopped_message_generation” if the user presses the button.@gramio/types/out/params.d.ts:4566
chat_idnumberUnique identifier for the target private chat@gramio/types/out/params.d.ts:4550
draft_idnumberUnique identifier of the message draft; must be non-zero. Changes to drafts with the same identifier are animated. Otherwise, the draft is replaced without animation.@gramio/types/out/params.d.ts:4558
keep_on_stop?booleanPass True to keep the draft in the chat when the button is pressed. The draft will still disappear after a short time or if the bot sends a message. To fully preserve the partial draft, the bot should send it as a new message.@gramio/types/out/params.d.ts:4570
message_thread_id?numberUnique identifier for the target message thread@gramio/types/out/params.d.ts:4554
rich_messageTelegramInputRichMessageThe partial message to be streamed. Direct upload of new files and explicit upload of files by a URL isn't supported.@gramio/types/out/params.d.ts:4562