events

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingCommand = "ping"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot interface {
	OnMessage(msg bot.Message) (bool, error)
}

type TbAPI

type TbAPI interface {
	GetUpdatesChan(config tbapi.UpdateConfig) tbapi.UpdatesChannel
	Send(c tbapi.Chattable) (tbapi.Message, error)
	Request(c tbapi.Chattable) (*tbapi.APIResponse, error)
}

type TelegramListener

type TelegramListener struct {
	SuperUsers []int64
	TbAPI      TbAPI
	Bot        Bot
}

func (*TelegramListener) Do

func (tl *TelegramListener) Do() error

Jump to

Keyboard shortcuts

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