Documentation ¶
Index ¶
- func HelpMessage(update tgbotapi.Update, ctx *BotContext)
- func LoadBot(configuration *common.Configuration)
- func ResendAudio(update tgbotapi.Update, ctx *BotContext)
- func ResendVideo(update tgbotapi.Update, ctx *BotContext)
- func RouteMessages(ctx *BotContext)
- func SendText(update tgbotapi.Update, ctx *BotContext, text string)
- func StartMessage(update tgbotapi.Update, ctx *BotContext)
- type BotContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelpMessage ¶
func HelpMessage(update tgbotapi.Update, ctx *BotContext)
func LoadBot ¶
func LoadBot(configuration *common.Configuration)
func ResendAudio ¶
func ResendAudio(update tgbotapi.Update, ctx *BotContext)
func ResendVideo ¶
func ResendVideo(update tgbotapi.Update, ctx *BotContext)
func RouteMessages ¶
func RouteMessages(ctx *BotContext)
func SendText ¶
func SendText(update tgbotapi.Update, ctx *BotContext, text string)
func StartMessage ¶
func StartMessage(update tgbotapi.Update, ctx *BotContext)
Types ¶
type BotContext ¶
type BotContext struct { Config *common.Configuration Bot *tgbotapi.BotAPI UpChannel <-chan tgbotapi.Update }
Click to show internal directories.
Click to hide internal directories.