Can WAHA show some love to WhatsApp's Latest Feature : WhatsApp Channels #218
Replies: 2 comments 1 reply
-
Yep, waiting for one of the engines and we'll add it! |
Beta Was this translation helpful? Give feedback.
-
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"
}
} |
Beta Was this translation helpful? Give feedback.
-
WhatsApp has recently released , WhatsApp Channels, which is getting crazy amount of attention.
I see WhatsApp Channels as great use case for WAHA.
Businesses , generally create social media content once and post the same content on multiple platforms Twitter(X), LinkedIn, Instagram, Snap etc. Without thinking twice, they would definitely want to relay the same content to their WhatsApp Channel as well.
From WAHA technical point of view, there is only one thing needed. If WAHA can provide APIs to send a messages to the Channel of the user with with they have authenticated. Boom We are done. WhatsApp Channels are Follow-Only, The user who have created the channel, needs to send message to his own channels.
I don't see any other whatsapp API providers projects/tools (open/closed source) have a ready solution to leverage WhatsApp Channels.
This could be an opportunity for WAHA to gain more users.
@allburov WDYT ?
Beta Was this translation helpful? Give feedback.
All reactions