Skip to content
  1. MTKruto/
  2. Walkthrough/
  3. Message Drafts
  1. Saving a Draft
  2. Clearing Drafts
Guides

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();
PreviousSaved MessagesNextScheduled Messages
© 2023-2026 MTKruto
TelegramGitHub
Appearance