telegram_bot_registry

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChannelNewBot = make(chan TelegramBot)

Functions

func FlagShuttingDownWL

func FlagShuttingDownWL()

Types

type TelegramBot

type TelegramBot interface {
	BotID() string
	GetInnerTelegramBot() *libbot.TelegramBot
	GetUpdatesChannel() tgbotapi.UpdatesChannel
	StopReceivingUpdates()
	AddChatIdWL(chatId int64)
	GetAllChainIdsRL() []int64
	PriorityWL()
	IsPriorityRL() bool
}

func GetTelegramBotByTokenWL

func GetTelegramBotByTokenWL(token string, logger logging.Logger) (TelegramBot, error)

type TelegramBots

type TelegramBots []TelegramBot

func GetAllTelegramBotsRL

func GetAllTelegramBotsRL() TelegramBots

func (TelegramBots) SortByPriority

func (bs TelegramBots) SortByPriority() TelegramBots

Jump to

Keyboard shortcuts

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