telegram

package
v0.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Token            string
	AllowConfRequest bool
	FloodWait        int
	LogLevel         log.Lvl

	Bot      *echotron.API
	BotMutex sync.RWMutex
)

Functions

func SendConfig

func SendConfig(userid int64, clientName string, confData, qrData []byte, ignoreFloodWait bool) error

func Start

func Start(initDeps TgBotInitDependencies) (err error)

Types

type SendRequestedConfigsToTelegram

type SendRequestedConfigsToTelegram func(db store.IStore, userid int64) []string

type TgBotInitDependencies

type TgBotInitDependencies struct {
	DB                             store.IStore
	SendRequestedConfigsToTelegram SendRequestedConfigsToTelegram
}

Jump to

Keyboard shortcuts

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