api

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 12 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 ReplyService added in v1.17.0

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

func NewReplyService added in v1.17.0

func NewReplyService(tg *telegram.BotAPI, secrets types.Secrets, sp types.StateProvider,
	logger zerolog.Logger,
) *ReplyService

func (*ReplyService) ServeHTTP added in v1.17.0

func (s *ReplyService) ServeHTTP(w http.ResponseWriter, req *http.Request)

type SendMessage

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

func NewSendMessage

func NewSendMessage(chats []uint64, 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