whatsapp-web.js 中的“@c.us”是什么意思

问题描述 投票:0回答:1

有关于“@c.us”的任何参考资料或资源可供我参考吗?

示例如下:

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);
});
javascript node.js whatsapp
1个回答
4
投票

不知道这样的文档(如果有的话 - 我会更新这个答案),但总的来说:

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

从这里获取信息https://chat-api.com/en/docs.html

© www.soinside.com 2019 - 2024. All rights reserved.