{"repo":"IamNator/go-whatsapp","free":true,"listed":false,"github":"https://github.com/IamNator/go-whatsapp","clone":"git clone https://github.com/IamNator/go-whatsapp.git","description":"This is a Go-Lang Library that helps you send messages using pre-made templates on WhatsApp cloud API.","language":"Go","stars":15,"topics":["golang","message","template","whatsapp","whatsapp-api"],"license":"MIT","category":"chat-messaging","readme_excerpt":"go-whatsapp [ ] This is a Go-Lang library that helps you send messages using pre-made templates on WhatsApp's business cloud platform. Send message using pre-made templates Send raw text Template Builder [example] Whatsapp cloud api allows businesses to send messages to their customers using pre-defined templates, in order to use the template, one would have to send the request in a particular data structure. The whatsapp/template package in this library simplify's the process of building/contructing that request payload. Below is a step by step description of the example above. 1. Create a new template using the template.New() function, providing a name and language for the template. 2. Add a header component to the template using the AddHeader() method, specifying the header text as an argument. 3. Add body components to the template using the AddBody() method, providing the body texts as arguments. 4. Finalize the template construction by calling the Done() method. It returns the constructed data structure. Data Structure. The resulting data structure:","default_branch":null,"files":null,"tree":[],"storefront":"/r/IamNator","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/IamNator/go-whatsapp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}