Baileys
Baileys copied to clipboard
how to mentions in templateMessage ??
How to mentions in templateMessage My code:
const templateButtons = [
{index: 1, urlButton: {displayText: '⭐ Star Baileys on GitHub!', url: 'https://github.com/adiwajshing/Baileys'}},
{index: 2, callButton: {displayText: 'Call me!', phoneNumber: '+1 (234) 5678-901'}},
{index: 3, quickReplyButton: {displayText: 'This is a reply, just like normal buttons!', id: 'id-like-buttons-message'}},
]
const templateMessage = {
text: "Hi @628979059392",
footer: 'Hello World',
templateButtons: templateButtons,
mentions: ["[email protected]"]
}
sock.sendMessage(id, templateMessage)
But unfortunately it still doesn't work the person mentioned there is not mentioned by templateMessage
con sender
con sender
what does con sender
mean?
I think you can't mentions someone in templateMessages
wht version of baileys are you using?
Já ocorreu isso comigo. Não consegui mencionar com templateMessage
wht version of baileys are you using?
Github version:
npm i https://github.com/adiwajshing/Baileys
Based on what I've tested, you can't tag/mention and reply someone using templateMessages.
edit: but you can get the name of the sender
not possible, as the template message itself can't render it (as @Vynn-SOLO said)
i'd say close the issue
This issue is stale because it has been open 6 days with no activity. Remove the stale label or comment or this will be closed in 2 days