admin管理员组

文章数量:1400744

Is there any reference or resources about "@c.us" that i can refer to?

example as below:

client.on('ready', () => {
 console.log('Client is ready!');

  // Your message.
 const text = "Hey john";

  // Getting chatId from the number.
  // we have to delete "+" from the beginning and add "@c.us" at the end of the number.
 const chatId = "[email protected]";

 // Sending message.
 client.sendMessage(chatId, text);
});

Is there any reference or resources about "@c.us" that i can refer to?

example as below:

client.on('ready', () => {
 console.log('Client is ready!');

  // Your message.
 const text = "Hey john";

  // Getting chatId from the number.
  // we have to delete "+" from the beginning and add "@c.us" at the end of the number.
 const chatId = "[email protected]";

 // Sending message.
 client.sendMessage(chatId, text);
});
Share Improve this question edited Jan 10 at 8:16 VLAZ 29.1k9 gold badges63 silver badges84 bronze badges asked Mar 6, 2021 at 18:31 Chrest KooChrest Koo 411 gold badge1 silver badge6 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

Not aware of such doc (if there is one - I'll update this answer), but in general:

<number>@c.us -- the <number> is user id
<number>@g.us -- the <number> is group id

Got the info from here https://chat-api./en/docs.html

本文标签: javascriptWhat is quotcusquot means in whatsappwebjsStack Overflow