telegram

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheQuery

func CacheQuery(store *cache.Cache) telebot.MiddlewareFunc

CacheQuery is a middleware that caches the result of the handler.

func MinQueryLength

func MinQueryLength(length int) telebot.MiddlewareFunc

MinQueryLength is the minimum length of the query to be considered.

Types

type Telegram

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

func New

func New(cfg config.BotConfig) (*Telegram, error)

func (*Telegram) RegisterMiddlewares

func (t *Telegram) RegisterMiddlewares()

RegisterMiddlewares registers all middlewares

func (*Telegram) Start

func (t *Telegram) Start()

Start starts polling for telegram updates

func (*Telegram) Stop

func (t *Telegram) Stop()

Stop stops polling for telegram updates

Jump to

Keyboard shortcuts

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