robvanderleek / mudslide

Send WhatsApp messages from the command-line
ISC License
120 stars 12 forks source link

Footer and Buttons are not working #65

Closed pharmankur closed 6 months ago

pharmankur commented 6 months ago

Dear, First of all Thanks a lot for creating this project. I am loving it :+1:

Just a few things I observed not working as you have explained in redme 1] Footer - When I do npx mudslide@latest send me 'hello\nworld' --footer 'Bye!'

I get "hello world" as expected in 2 lines, but I do not see any "Bye"

2] Buttons - When I do npx mudslide@latest send me 'Everyone ready?' -b 'yes' -b 'no'

I get nothing ! ... Not even the message "Everyone ready?"

Pls check ...

create-issue-branch[bot] commented 6 months ago

Branch issue-65-Footer_and_Buttons_are_not_working created!

robvanderleek commented 6 months ago

Hi @pharmankur

Unfortunately, the WA library that this tool depends on (@whiskeysockets/baileys) dropped support for buttons (and footers). Please see this issue for more information: https://github.com/WhiskeySockets/Baileys/issues/56 I think the reason that the support was dropped is a change by WA on their API/apps.

As I'm depending on the baileys library for connecting with the WA API, there's nothing I can do to fix it. I've removed the footer and button options in the latest release, I will restore the options in case support through the baileys library is available again in the future.

KR, Rob

pharmankur commented 6 months ago

Thanks for updating & removing button option [ which was not working anyways ]. But it was removed only from code under the hood ! npx mudslide@latest help still shows example as --> send me -b 'Yes' -b 'No' "Are you on your way?" Pls update it in help as well !

Also if possible, in help, please elaborate examples of [options] of following commands send-image [options] <recipient> <file>Send image file send-file [options] <recipient> <file>

create-issue-branch[bot] commented 6 months ago

Branch issue-65-Footer_and_Buttons_are_not_working created!

robvanderleek commented 6 months ago

Hi @pharmankur

I forgot to update the examples in the usage indeed 🤦 Thanks for reporting this!

Rob