msg

package
v0.0.0-...-11198bb Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

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

func NewMessage

func NewMessage(m Messager) *Message

func (*Message) SendDocument

func (m *Message) SendDocument(ctx context.Context, target any, document []byte, fileName string) error

func (*Message) SendImage

func (m *Message) SendImage(ctx context.Context, target any, image []byte, fileName string) error

func (*Message) SendText

func (m *Message) SendText(ctx context.Context, target any, text string) error

type Messager

type Messager interface {
	SendText(ctx context.Context, target any, text string) error
	SendDocument(ctx context.Context, target any, content []byte, fileName string) error
	SendImage(ctx context.Context, target any, content []byte, fileName string) error
}

type WhatsApp

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

func (*WhatsApp) SendDocument

func (w *WhatsApp) SendDocument(ctx context.Context, target any, document []byte, fileName string) error

func (*WhatsApp) SendImage

func (w *WhatsApp) SendImage(ctx context.Context, target any, image []byte, fileName string) error

func (*WhatsApp) SendText

func (w *WhatsApp) SendText(ctx context.Context, target any, text string) error

Jump to

Keyboard shortcuts

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