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
WhatsApp Buttons #98
Comments
oh my word |
might need to skype call/remote desktop one of you to reverse engineer this one. |
@smashah Awesome! i'm excited to initiate an reverse engineer on this one - i will send you an private message to discuss better |
Meet-me at Telegram to better discuss: https://t.me/liveapps |
Join discord: |
@andersondeoliveiramachado @joaomirandasa let me know once you've joined my tag is @ shah |
Degug information about new message type: |
thanks @joaomirandasa The questions are of type template. They can also have subtypes (i.e the body of the questions). Also the buttons themselves have subtypes (i.e the action performed in response to the question) as seen below in the WhatsApp app code. This means that you can send a user a picture and then show a button to start a call. Wild stuff. |
https://wa.me/5511955705173?text=Ol%C3%A1,%20UAM! this is the college whatsapp link that has this business account with this button feature. |
I've managed to construct this message properly however, unfortunately, the message gets 'dropped'. |
most likely to have validation by account type. This account is a business account. is some kind of message returned in this sense? or simply do not have shipping or return? |
@smashah Could you give me more information about the drop? witch kind of account did you used to test, an Business or personal account? Probably this just can be sent from WBusiness and searching aboout informations of that previous number we realize it's not an verified account - so probably they are using an 3rd party solution provided by someone else, at this moment me and @andersondeoliveiramachado |
I fixed the drop. It doesn't come out the other end with the buttons though. |
https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/ https://github.com/Rhymen/go-whatsapp/blob/master/binary/proto/def.proto message TemplateMessage {
optional ContextInfo contextInfo = 3;
optional HydratedFourRowTemplate hydratedTemplate = 4;
oneof format {
FourRowTemplate fourRowTemplate = 1;
HydratedFourRowTemplate hydratedFourRowTemplate = 2;
}
} |
@andersondeoliveiramachado @joaomirandasa @marcelocecin have a play around in the chrome console. https://github.com/smashah/sulla/blob/a9b94acd08ca4067f13eb0bd926ce1d257b7bdcc/src/lib/wapi.js#L1689 I can't get this to work 🤷 |
Is it possible to test with any type of account? |
I've tested with both business and personal and it changes into a normal chat during sending. Doesn't work on either as expected. The only thing left to do is to mutate the app code somehow. I don't know how to do that |
@andersondeoliveiramachado could you try to share the message with another number on whatsapp web and attach the prints? |
Yes , what is the number? |
try this in the browser: https://github.com/smashah/sulla/blob/82ee145b9d83222aa506ff3bfc72a9aacd9164da/src/lib/wapi.js#L1692 I think this is as close as i'm gonna get for now. |
Wow! Sulla is envolver faster than i thought. Great to see this. Soon I'll test the button's features. Also... Looks like brazilian people loves Sulla. I have never seen an non-brazilian repository with so many brazilians interacting. Beijos do Brasil! |
Thanks @open-wa for so engagement on discover and reproduce this features! Amazing to see this project growing every day. Regards from Brazil! Come here to drink a beer! |
Bruh |
how to approach this? @smashah |
@ImBIOS with excitement. Keep an eye on this issue. This feature will be releasing soon |
@github-actions run ⚡ Release! ⚡(async () => {
function exec(cmd) {
console.log(execSync(cmd).toString());
}
// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";
exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci minor`);
//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();
await postComment(result);
//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
})(); |
Changelog🚀 Release 4.11.0 (2021-07-15)
|
It took 1.5 years but finally, it's here. I'm proud to announce you can finally send simple button messages with open-wa (limit is 3 buttons) await client.sendButtons(chatId, "Body", [
{
id: "1",
"text": "Click"
},
{
id: "1",
"text": "Call"
},
{
id: "1",
"text": "Open Link"
}
], "title", "footer") result: @andersondeoliveiramachado @tinyCoder32 @m7mdcc @joaomirandasa closing. thanks |
Salam @smashah , Great Job .. 3 buttons is limit ? could we send more ? finaly YOU DID IT HEHEHE |
Ws @m7mdcc I tried with 4 and more but it only ever showed three. That's the limit from wa |
@mrbarnk these are special buttons (url & call). They are still not available for use outside the official API. I tested these types of buttons recently before releasing normal buttons for the library and it still comes up in the chat as if it was sent by the recipient. I doubt we'll ever get access to these special buttons. |
Oh! Well, Kudos on this normal button alone. |
But This Command And Function dosn't giving response and nor showing any error |
@sparrow-code it is working fine here. Log the output of that command it to check if it returns a message id. |
The text was updated successfully, but these errors were encountered: