Message App / postMessage

Hi there,
Im trying to integration a messaging extension with Pipedrive (App messenger)
I encountered a problem when sending a message from the messenger interface to my application.
When I send plain text, it’s ok, I get request to route postMessage from manifest and I response

{
      success: true,
      data: { id: "my_message_Id"},
 }

But if I send images from the pipedrive interface and response

{
      success: true,
      data: { id: "my_message_Id"},
 }

image is not saved in chat.
What could be the problem?
Is it enough to response just the id when sending a message with content?

Hey @testName, if I understand the issue correctly, you are building a new app integration and if you send an image with the message from the Pipedrive chat window, the image is not shown in the chat. It’s a little bit tricky with images because they are saved separately.

The message (text) itself is saved just after you send it and we do not wait for confirmation. But when it comes to images, we are waiting for the provider, because it’s important for us to have the same data as the provider has - I mean there is usually some magic like resizing, compression, watermarks, previews, expiration, and so on. This is why are waiting until the hook is called - please use /messages/receive endpoint with the image.

This topic was automatically closed after 10 days. New replies are no longer allowed.