package handlers import ( "net/http" "github.com/gin-gonic/gin" ) // Meta verification func VerifyWebhook(c *gin.Context) { challenge := c.Query("hub.challenge") token := c.Query("hub.verify_token") if token == "YOUR_SECRET_TOKEN" { c.String(http.StatusOK, challenge) } else { c.Status(http.StatusForbidden) } } func HandleMessage(c *gin.Context) { // You should bind your WhatsApp types here // go services.Process(...) c.Status(http.StatusOK) }