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
1 Answer
Reset to default 4Not 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
版权声明:本文标题:javascript - What is "@c.us" means in whatsapp-web.js - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744260053a2597668.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论