Skip to content

Commit

Permalink
docs: Updated examples using the outdated reply method (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored Aug 5, 2024
1 parent a5f2d5e commit 1272156
Showing 1 changed file with 10 additions and 6 deletions.
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

0 comments on commit 1272156

Please sign in to comment.