Krukov / amocrm_api

Python amocrm API wrapper
MIT License
104 stars 55 forks source link

How to get messages from whatsapp integration? #54

Closed kfcaio closed 3 years ago

kfcaio commented 3 years ago

Hi,

I'm looking for a way to retrieve messages from whatsapp integration . That integration is set on a phone I don't have access, so it'd be great if I could work around it.

I have access to leads and other entities mapped, but I'm clueless about how to interact with integrations and widgets, is it possible? If so, what is a viable way to do that? I'm open to contribute : )

My use case is quite simple: I don't have access to individual whatsapp notifications. In other words, I have to check each lead in order to know if he/she answers my message or dive into notifications (I'm not able to filter only my clients). I want to interact problematically with chat messages.

Krukov commented 3 years ago

Hi,

I have never worked with integrations/widgets in AmoCRM, and it is look like a big deal to solve your issue.

I only have an idea, you can try to create a webhook manually for chat messages ( https://www.amocrm.com/developers/content/digital_pipeline/dp-webhooks/ ) or by api for note_lead, note_contact or update_lead events https://www.amocrm.com/developers/content/api_v4/webhooks-2/#webhooks-available-actions (this library haven't wrapper for this entity) and check lead messages only by receiving a callback

kfcaio commented 3 years ago

Thank you, I'll take a look at your suggestions