Guides

Message DraftsUSER-ONLY

User Walkthrough 17 of 18

User clients can save message drafts and clear all drafts.

Saving a Draft

Use saveDraft with a chat’s identifier and the draft text.

await client.saveDraft(chatId, "Remember to send the report.");

Pass an empty string to clear the draft.

await client.saveDraft(chatId, "");

Use saveRichTextDraft to save a rich text draft.

Clearing Drafts

Use clearDrafts to clear all message drafts.

await client.clearDrafts();