boilerplate

package
v0.0.0-...-edc2572 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBot

func RunBot(apiKey string, bot BotFunc, name, description string)

RunBot runs a bot. It will block until either something very bad happens or closing is closed.

func RunBotOnWebhook

func RunBotOnWebhook(apiKey string, bot BotFunc, name, description, webhookHost string, webhookPort uint16, pubkey, privkey string)

RunBotOnWebhook runs the given BotFunc with a webhook.

Types

type BotFunc

type BotFunc func(update tbotapi.Update, api *tbotapi.TelegramBotAPI)

BotFunc describes how the bot handles an update.

Source Files

  • boilerplate.go

Jump to

Keyboard shortcuts

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