bot

package
v0.0.0-...-05f9185 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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