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
Click to show internal directories.
Click to hide internal directories.