Skip to content

Commit b5c5d09

Browse files
committed
Add user Walkthrough section, set line height to 1.5
1 parent 76234f6 commit b5c5d09

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

src/_includes/style/content.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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;
@@ -75,7 +75,7 @@
7575
p,
7676
ol,
7777
ul {
78-
line-height: 1.65;
78+
line-height: 1.5;
7979
}
8080

8181
b,

src/message-drafts.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
```

0 commit comments

Comments
 (0)