Skip to content

Commit 296da5b

Browse files
committed
Add clearing example
1 parent b5c5d09 commit 296da5b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/message-drafts.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Use {{ "saveDraft" |> m }} with a chat's identifier and the draft text.
1616
await client.saveDraft(chatId, "Remember to send the report.");
1717
```
1818

19+
Pass an empty string to clear the draft.
20+
21+
```ts
22+
await client.saveDraft(chatId, "");
23+
```
24+
1925
Use {{ "saveRichTextDraft" |> m }} to save a rich text draft.
2026

2127
## Clearing Drafts

0 commit comments

Comments
 (0)