api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 7 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(tg *telegram.BotAPI, text Argument) *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