context

package
v0.0.0-...-5db6154 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Message *Message
	Logger  *logger.Logger
}

func New

func New(ctx context.Context, evt interface{}) *Context

type Message

type Message struct {
	*events.Message
	// contains filtered or unexported fields
}

func (*Message) Args

func (m *Message) Args() []string

func (*Message) ArgsN

func (m *Message) ArgsN(n int) []string

func (*Message) Edit

func (m *Message) Edit(client *whatsmeow.Client, text string) (whatsmeow.SendResponse, error)

func (*Message) GetText

func (m *Message) GetText() string

func (*Message) Reply

func (m *Message) Reply(client *whatsmeow.Client, text string) (whatsmeow.SendResponse, error)

func (*Message) Send

func (m *Message) Send(client *whatsmeow.Client, to types.JID, text string) (resp whatsmeow.SendResponse, err error)

Jump to

Keyboard shortcuts

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