media

package
v0.0.0-...-93d891c Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaAPI

type MediaAPI struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, client *customClient.Client, phoneNumberID string) *MediaAPI

func (*MediaAPI) Delete

func (m *MediaAPI) Delete(mediaID string) error

func (*MediaAPI) Download

func (m *MediaAPI) Download(mediaURL string) ([]byte, error)

func (*MediaAPI) Retrieve

func (m *MediaAPI) Retrieve(mediaID string) (*whatsappTY.Media, error)

func (*MediaAPI) Upload

func (m *MediaAPI) Upload(media *whatsappTY.Media) (*whatsappTY.Media, error)

Jump to

Keyboard shortcuts

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