sendmessage

package
v0.0.0-...-006b425 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMessage

func SendMessage(from, token, tel, msg string)

Send a WhatsApp message using the Zenvia API

Types

type Contents

type Contents struct {
	Type string `json:"type"`
	Text string `json:"text"`
}

type WhatsApp

type WhatsApp struct {
	From     string     `json:"from"`
	To       string     `json:"to"`
	Contents []Contents `json:"contents"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL