api

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArgumentNotFound = errors.New("argument not found")

Functions

This section is empty.

Types

type Argument

type Argument interface {
	Get(req api.Request) (string, error)
}

func NewConstArg

func NewConstArg(val string) Argument

func NewRefArg

func NewRefArg(ref string) Argument

type SendMessage

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

func NewSendMessage

func NewSendMessage(chatID spec.OptUint64, handler api.Handler) *SendMessage

func (*SendMessage) Call

func (sm *SendMessage) Call(ctx context.Context, req api.Request) error

Jump to

Keyboard shortcuts

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