-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
[Feature Request] Support for Channels #254
Comments
Sure it'd be great! Waiting for engines to support it |
any update for this, sending message at channel at bailey. |
The first step has been done! ℹ️ not all features are supported right now by the engines. If you see a blank space on desired feature - kindly leave 💡 Channels have a special
EndpointsGet all channelsYou can get list of known channels
[
{
"id": "111111111111111111@newsletter",
"name": "Channel - Owner - Picture",
"description": "Hi there, I'm new here",
"invite": "https://whatsapp.com/channel/111111111111111111GdZ60l",
"preview": "https://mmg.whatsapp.net/m1/v/t24/123",
"picture": "https://mmg.whatsapp.net/m1/v/t24/123",
"verified": false,
"role": "OWNER"
},
{
"id": "111111111111111111@newsletter",
"name": "Channel - Subscriber - No Picture",
"description": "",
"invite": "https://whatsapp.com/channel/111111111111111111111111",
"preview": null,
"picture": null,
"verified": false,
"role": "SUBSCRIBER"
}
] Create a new channelYou can create a new channel {
"name": "Channel Name",
"description": "Channel Description",
"picture": {
"mimetype": "image/jpeg",
"filename": "filename.jpg",
"url": "https://github.com/devlikeapro/waha/raw/core/examples/dev.likeapro.jpg"
}
} Delete a channelYou can delete a channel Get channel by IDYou can get a channel by ID {
"id": "111111111111111111@newsletter",
"name": "Channel - Owner - Picture",
"description": "Hi there, I'm new here",
"invite": "https://whatsapp.com/channel/111111111111111111GdZ60l",
"preview": "https://mmg.whatsapp.net/m1/v/t24/123",
"picture": "https://mmg.whatsapp.net/m1/v/t24/123",
"verified": false,
"role": "OWNER"
} Get channel by Invite CodeYou can get a channel by Invite Code
💡 To get full {
"id": "111111111111111111@newsletter",
"name": "Channel - Owner - Picture",
"description": "Hi there, I'm new here",
"invite": "https://whatsapp.com/channel/111111111111111111GdZ60l",
"preview": "https://mmg.whatsapp.net/m1/v/t24/123",
"picture": "https://mmg.whatsapp.net/m1/v/t24/123",
"verified": false,
"role": "OWNER"
} How-toSend Text to the channelYou can use regular [ 👉 Make sure you're {
"session": "default",
"chatId": "12132132130@newsletter",
"text": "Hi there!"
} Send Image to the channelYou can use regular [ {
"session": "default",
"chatId": "11111111111@newsletter",
"file": {
"mimetype": "image/jpeg",
"url": "https://github.com/devlikeapro/waha/raw/core/examples/dev.likeapro.jpg",
"filename": "filename.jpeg"
},
"caption": "string"
} Get messages from the channelYou can use regular GET /api/default/chats/123%40newsletter/messages?downloadMedia=true&limit=100 [
{
"id": "true_111111111111111111@newsletter_1111111111111111111111",
"timestamp": 1720775833,
"from": "111111111111111111@newsletter",
"fromMe": true,
"body": "Caption",
"hasMedia": true,
"media": {
"mimetype": "image/jpeg",
"filename": null,
"url": "http://localhost:3000/api/files/1111111111111111111111.jpeg"
},
"mediaUrl": "http://localhost:3000/api/files/1111111111111111111111.jpeg",
"ack": 0,
"ackName": "PENDING",
"_data": {
...
}
}
]
Receive messages from the channelFor all incoming messages in your own and subscribed channels you'll receive
{
"event": "message",
"session": "default",
"me": {
"id": "111111111111@c.us",
"pushName": "Slovakia WAHA"
},
"payload": {
"id": "false_123123@newsletter_11111111111111111111111111111111",
"timestamp": 1720776511,
"from": "111111111111111111@newsletter",
"fromMe": false,
"body": "How are you all?! ❤️",
"hasMedia": false,
"ack": null,
"ackName": "UNKNOWN",
"_data": {
...
}
},
"engine": "NOWEB",
"environment": {
"version": "2024.7.4",
"engine": "NOWEB",
"tier": "PLUS",
"browser": "/usr/bin/google-chrome-stable"
}
} |
Hi, Whatsapp released a new feature called "Channels".
Can you add a support to send messages and media to channels?
Thank you!
The text was updated successfully, but these errors were encountered: