telegram

package
v0.0.0-...-e337c9b Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	ScheduleStorage konfurbot.ScheduleStorage
	TelegramToken   string
	Timezone        *time.Location
	Logger          konfurbot.Logger
	// contains filtered or unexported fields
}

Bot handles interactions with Telegram users

func (*Bot) Start

func (b *Bot) Start() error

Start initializes Telegram API connections

func (*Bot) Stop

func (b *Bot) Stop() error

Stop gracefully stops Telegram API connections

type TelebotInterface

type TelebotInterface interface {
	Listen(chan telebot.Message, time.Duration)
	SendMessage(telebot.Recipient, string, *telebot.SendOptions) error
}

TelebotInterface is an excuse for tucnak's laziness

Jump to

Keyboard shortcuts

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