gabrieldwight / Whatsapp-Business-Cloud-Api-Net

This is C# wrapper of whatsapp business cloud api for .NET
MIT License
284 stars 104 forks source link

How can I read or receive messages #10

Closed InfoTI89 closed 1 year ago

InfoTI89 commented 1 year ago

@gabrieldwight First of all, thanks for the library, it is of great support for any research project.

I have a problem that I can't solve. How can I read or receive the messages that a contact writes to me, I have already tried everything, I have configured the WebHooks from Meta, through the Glitch I can read the messages, but not through the methods of this project. Could you give me a hand?

gabrieldwight commented 1 year ago

@InfoTI89 You can use Conveyor Extension to test your ASP.NET webhook endpoint locally as long as you have added the locally generated endpoint to Meta webhook subscription for testing then you can change to your production endpoint. For the sample project context, I used the conveyor extension for reading and receiving WhatsApp messages sent by the contact. One thing to note: You need to verify the endpoint generated by Conveyor to Meta if the generated verification token matches

InfoTI89 commented 1 year ago

thanks for the info, i will try it

gabrieldwight commented 1 year ago

@InfoTI89 Let me know if the conveyor extension solves your issue with receiving messages in the project context.

InfoTI89 commented 1 year ago

I'm trying, is there a test version of the conveyor? Currently it is asking me to make a payment to enable the settings.

image

gabrieldwight commented 1 year ago

For the custom settings, you will need the pro version. If you click access over internet it will generate the internet URL that can be used for testing when debugging the project.

InfoTI89 commented 1 year ago

Can you tell me why it tells me to start a project? Apologies in advance for the insistence.

image

gabrieldwight commented 1 year ago

You run your project in debug mode. Once the project is running, you click access over the internet, it will successfully generate a temporary internet URL for testing.