Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug When sending a message to the channel #2551

Open
1 task done
Inaciooooo opened this issue Oct 1, 2023 · 6 comments · May be fixed by #2620
Open
1 task done

Bug When sending a message to the channel #2551

Inaciooooo opened this issue Oct 1, 2023 · 6 comments · May be fixed by #2620
Labels
bug Something isn't working

Comments

@Inaciooooo
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Quando tento enviar mensagem para algum canal ele simplesmente da em nada como se não estivesse executado o codigo exemplo de como uso client.sendMessage("120363168650684996@newsletter", "teste123");

Expected behavior

Não sei

Steps to Reproduce the Bug or Issue

.

Relevant Code

client.sendMessage("120363168650684996@newsletter", "👽");

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

.

Additional context

.

@Inaciooooo Inaciooooo added the bug Something isn't working label Oct 1, 2023
@alechkos
Copy link
Collaborator

alechkos commented Nov 2, 2023

@Inaciooooo

In progress...

@techenthusiast8630
Copy link

@alechkos is this bug fixed?

@alechkos
Copy link
Collaborator

alechkos commented Nov 5, 2023

@chirag3232

is this bug fixed?

it will be fixed as soon as i finish the pr

@techenthusiast8630
Copy link

@alechkos how much time will it take? approximately?

@alechkos
Copy link
Collaborator

alechkos commented Nov 8, 2023

@techenthusiast8630 @Inaciooooo

You can test it in the meantime, but it's still a work in progress
Supported message types to send are: text, image and video

npm install github:alechkos/whatsapp-web.js#channels
const myChannelId = (await client.createChannel('MyChannel'))?.nid._serialized;
if (myChannelId) {
    const sentMsg = await client.sendMessage(myChannelId, msg);
    console.log(sentMsg);
} else console.log('Channels are not supported in your country');

@alechkos
Copy link
Collaborator

@techenthusiast8630 @Inaciooooo

The sendMessage method for channels has been fixed.
Currently, supported message types to send are: text, image, sticker, gif, or video.

Don't forget to reapply the PR:

npm install github:alechkos/whatsapp-web.js#channels

@alechkos alechkos linked a pull request Dec 1, 2023 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants