Skip to content

Commit 6f13d23

Browse files
committed
added poll and example of poll sending
1 parent ff40a62 commit 6f13d23

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

examples/sendPoll.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from whatsapp_api_client_python import API
2+
3+
greenAPI = API.GreenApi(
4+
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
5+
)
6+
7+
8+
def main():
9+
response = greenAPI.sending.sendPoll("11001234567@c.us", "Please choose the color:", [{"optionName": "green"}, {"optionName": "red"}, {"optionName": "blue"}])
10+
11+
print(response.data)
12+
13+
14+
if __name__ == '__main__':
15+
main()

0 commit comments

Comments
 (0)