Documentation ¶
Index ¶
- func GenerateMediaID(whatsapp *client, filePath, mimeType string) (string, error)
- func Languages() languageCodes
- func New(ctx context.Context, apiVersion, accessToken, senderID string) *client
- func SendMessage[MessageType Text | Audio | Document | Image | Video | Sticker](whatsapp *client, body WhatsappBody[MessageType]) error
- type Audio
- type Document
- type Header
- type Image
- type Media
- type Sticker
- type Text
- type TextBody
- type Video
- type WhatsappBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMediaID ¶
func SendMessage ¶
Types ¶
type Media ¶
type Media struct { Id string `json:"id"` // your media id Filename string `json:"filename,omitempty"` //your document filename }
Media types
Click to show internal directories.
Click to hide internal directories.