base

package
v0.0.0-...-c431599 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Text   string
	Action string
	Args   []string
}

func NewCommand

func NewCommand(text string) *Command

type Request

type Request struct {
	Update  *telegram.Update
	Message *telegram.Message
	Command *Command

	Response *Response
}

func NewRequest

func NewRequest(bot *telegram.Bot, upd telegram.Update) *Request

type Response

type Response struct {
	ChatID    int
	UserID    int
	MessageID int
	Bot       *telegram.Bot
}

func (*Response) Reply

func (r *Response) Reply(text string) (*telegram.Message, error)

Jump to

Keyboard shortcuts

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