GramIO API Reference / gramio/dist / SendRichMessageDraftParams
Interface: SendRichMessageDraftParams
Defined in: @gramio/types/out/params.d.ts:4546
Params object for sendRichMessageDraft method
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
can_stop? | boolean | Pass 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_id | number | Unique identifier for the target private chat | @gramio/types/out/params.d.ts:4550 |
draft_id | number | Unique 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? | boolean | Pass 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? | number | Unique identifier for the target message thread | @gramio/types/out/params.d.ts:4554 |
rich_message | TelegramInputRichMessage | The 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 |