Documentation
¶
Index ¶
Constants ¶
View Source
const ( // default CmdStart = "/start" CmdStop = "/stop" CmdHelp = "/help" CmdAbout = "/about" // debug CmdID = "/id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot represents the telegram bot
func NewBotWithTelegram ¶
type BotMetrics ¶
type BotOption ¶
BotOption passed to NewBot to change the default instance.
func WithAllowlist ¶
func WithLogger ¶
WithLogger sets the logger for the Bot as an option.
func WithMetrics ¶
func WithMetrics(m BotMetrics) BotOption
func WithRevision ¶
func WithStartTime ¶
Click to show internal directories.
Click to hide internal directories.