Message DraftsUSER-ONLY
User Walkthrough 6 of 50
Users can save message drafts and clear all drafts.
Saving a Draft
saveDraft accepts a chat identifier and the draft text.
await client.saveDraft(chatId, "Remember to send the report.");
An empty string clears the draft.
await client.saveDraft(chatId, "");
saveRichTextDraft lets you save a rich text draft.
Clearing Drafts
To clear all message drafts, call clearDrafts.
await client.clearDrafts();