#group.sendMessage is not a function

5 messages · Page 1 of 1 (latest)

rain citrus
#
/home/runner/Whatsapp-Bot/index.js:28
    await group.sendMessage(before)
                ^

TypeError: group.sendMessage is not a function
const group = client.getChatById('XXXXXXXXXXXXX@g.us')
await group.sendMessage(before)
rain citrus
#

im just new and im trying to figure how to send messages using ID.

#

any help would be appreciated

small grove
#
const group = await client.getChatById('XXXXXXXXXXXXX@g.us');
await group.sendMessage(before);
rain citrus
#

@small grove
it doesnt send the message to the group or even it doesnt execute rest of the code below the group.sendMessage part.

also:

TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r982053 is guaranteed to work.

this error happened when i switched to LocalAuth