asternic / wuzapi

Simple RESTful API for WhatsApp in Golang (using the Whatsmeow multi device library)
MIT License
105 stars 58 forks source link

Request For Poll Feature In API #22

Open mycodemm opened 11 months ago

mycodemm commented 11 months ago

can you add poll sending in api?

asternic commented 11 months ago

What do you mean with poll sending? If you mean some kind of business logic for your application, then the answer is no, you should implement such logic in the application that consumes this API. Anyways, let me know what you mean by it.

mycodemm commented 11 months ago

Just like we send text, and media. there is one feature to send poll messages. https://pkg.go.dev/go.mau.fi/whatsmeow#Client.BuildPollCreation

mycodemm commented 11 months ago

add poll button in API, as poll option is already available in lib, it is a good alternative for buttons. also, it is very useful for companies to get reviews or votes.

can create multiple poll options in one message, can send a text with poll, Text+Media+Poll, Text+Docs+Poll.

One more use of poll, if any receiver click on poll then it creates a report of interested user like if you want to receive this message poll: yes or no so its a small alternative for a button also.