mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
feat: handle group messages
This commit is contained in:
@@ -16,7 +16,7 @@ const SendWhatsAppMessage = async ({
|
||||
const wbot = await GetTicketWbot(ticket);
|
||||
|
||||
const sentMessage = await wbot.sendMessage(
|
||||
`${ticket.contact.number}@c.us`,
|
||||
`${ticket.contact.number}@${ticket.isGroup ? "g" : "c"}.us`,
|
||||
body
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user