File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 min-width : 0 ;
33 color : var (--fg );
44 font-size : 16px ;
5- line-height : 1.65 ;
5+ line-height : 1.5 ;
66
77 > h1 {
88 margin : 1rem 0 ;
7575 p ,
7676 ol ,
7777 ul {
78- line-height : 1.65 ;
78+ line-height : 1.5 ;
7979 }
8080
8181 b ,
Original file line number Diff line number Diff line change 1+ ---
2+ title : Message Drafts
3+ parent : /#walkthrough
4+ walkthrough :
5+ track : user
6+ order : 17
7+ ---
8+
9+ User clients can save message drafts and clear all drafts.
10+
11+ ## Saving a Draft
12+
13+ Use {{ "saveDraft" |> m }} with a chat's identifier and the draft text.
14+
15+ ``` ts
16+ await client .saveDraft (chatId , " Remember to send the report." );
17+ ```
18+
19+ Use {{ "saveRichTextDraft" |> m }} to save a rich text draft.
20+
21+ ## Clearing Drafts
22+
23+ Use {{ "clearDrafts" |> m }} to clear all message drafts.
24+
25+ ``` ts
26+ await client .clearDrafts ();
27+ ```
You can’t perform that action at this time.
0 commit comments