Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: updated examples using the outdated reply method #2265

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions docs/getting-started/basic-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ await client.sendMentioned(
Reply to a message

```javascript
await client.reply(
await client.sendText(
'000000000000@c.us',
'This is a reply!',
message.id.toString()
{ quotedMsg: message.id.toString() }
);
```

Expand All @@ -237,11 +237,15 @@ await client.reply(
Reply to a message with a mention

```javascript
await client.reply(
await client.sendText(
'000000000000@c.us',
'Hello @5218113130740 and @5218243160777! This is a reply with mention!',
message.id.toString(),
['5218113130740', '5218243160777']
{
quotedMsg: message.id.toString(),
detectMentioned: true, //either automatically detect the mentions
mentionedList: ['5218113130740', '5218243160777'] //or supply them manually
}
}
);
```

Expand All @@ -255,7 +259,7 @@ await client
'000000000000@c.us',
'This is a reply!',
{
quotedMessageId: reply,
quotedMessage: message.id,
}
)
.then((result) => {
Expand Down
Loading