sender

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

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

func NewSender

func NewSender(client *whatsmeow.Client) *Sender

func (*Sender) ButtonMessage

func (s *Sender) ButtonMessage(ctx context.Context, btnmsg whahep.ButtonsMessages, toJID types.JID) (resp whatsmeow.SendResponse, err error)

func (*Sender) DocumentMessage

func (s *Sender) DocumentMessage(ctx context.Context, plaintext []byte, filename string, caption string, toJID types.JID) (resp whatsmeow.SendResponse, err error)

func (*Sender) ImageMessage

func (s *Sender) ImageMessage(ctx context.Context, imageUpload whatsmeow.UploadResponse, mimetype, caption string, toJID types.JID) (resp whatsmeow.SendResponse, err error)

func (*Sender) ListMessage

func (s *Sender) ListMessage(ctx context.Context, lstmsg whahep.ListMessage, toJID types.JID) (resp whatsmeow.SendResponse, err error)

func (*Sender) LiveLocation

func (s *Sender) LiveLocation(ctx context.Context, caption string, latitude, longitude float64, toJID types.JID) (resp whatsmeow.SendResponse, err error)

func (*Sender) Message

func (s *Sender) Message(ctx context.Context, msg string, toJID types.JID) (resp whatsmeow.SendResponse, err error)

func (*Sender) ReadMark

func (s *Sender) ReadMark(info *types.MessageInfo) (resp whatsmeow.SendResponse, err error)

Jump to

Keyboard shortcuts

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