Neurotech-HQ / heyoo

Opensource python wrapper to WhatsApp Cloud API
https://pypi.org/project/heyoo/
MIT License
442 stars 97 forks source link

error while trying to send a message #10

Closed Mounthazeer closed 2 years ago

Mounthazeer commented 2 years ago

i am getting this error while trying to send a message

Invalid recipient for test number

Kalebu commented 2 years ago

Hi @Mounthazeer

It seems like you haven't verified your test number in a Facebook developer portal

Before you go to production, all recipients must be verified, Please cross-check

Mounthazeer commented 2 years ago

do you mean the receivers number ? i added one and now i can send using the curl command in step 2

however getting this problem now it is showing me the following but no message is sent when using the send message function done

note: it can be found that the sendtemplate function is however working

Kalebu commented 2 years ago

I have noticed some patterns like to able to send messages that are not *pre-approved template, you will need to set up your webhook first.

Originally posted by @Kalebu in https://github.com/Neurotech-HQ/heyoo/issues/3#issuecomment-1133880881

Mounthazeer commented 2 years ago

so i have to setup the webhook i am having some trouble though

i dont understand the following steps: From Heroku settings configure your Environment varibles of your WhatsAapp application. Setup and verify your webhook url and token then subscribe to messages.

Mounthazeer commented 2 years ago

hi i have been trying to set up the webhook however when i run my url in a browser as stated here https://github.com/JAXPARROW/whatsapi-flask-webhook i get this: Invalid verification token

Kalebu commented 2 years ago

please make sure you specify the same verification token while configuring you're webhook on the developer portal

Mounthazeer commented 2 years ago

the token i specify in heroku right but still having problems though image

Mounthazeer commented 2 years ago

if i paste the url in a browser it outputs 'hello it works' however if i put /whatsapi at the end it says invalid verification token

Kalebu commented 2 years ago

Hello @Mounthazeer

Please make sure to set up your environment variables to reflect your credentials in case you have used Deploy heroku to deploy your webook.

Let me know if you still have issues