Media Carousel Template #103
Replies: 3 comments
-
Hey, no. That's not possible yet. It's too complex. If you have an idea how to add this, we would love for you to contribute to the project. |
Beta Was this translation helpful? Give feedback.
-
I will have a think, but will probably take a while as I am not that familiar with what's going on 'under the hood', and may take me a bit to get my head in to it. My understanding from the WhatsApp documentation is you will have to upload media files to get an asset handle to use in the examples. As far as I can tell you cannot omit this. Perhaps that element could be a method attached to the whatsapp class; wa.upload_file(...):
and then possibly store the key value pairs of filename and the asset id in the class or some other place convenient for later reference when creating the template. At that point would it be the case of accomodating some new types in the types.template.py file like adding Carousel as a ComponentType and add a CardType? |
Beta Was this translation helpful? Give feedback.
-
@yehuda-lev I have made an attempt at this and submitted a pull request at here: |
Beta Was this translation helpful? Give feedback.
-
I wanted to implement a media carousel template in my chatbot, but could not figure out if this was possible within the Pywa framework.
https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/media-card-carousel-templates/
Anyone know if this is possible? If not happy to help implement!
Beta Was this translation helpful? Give feedback.
All reactions