telegram

package
v0.0.0-...-408557b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 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 {
	TelegramToken    string
	TrumpCode        string
	PlayerRepository switchers.PlayerRepository
	GameProcessor    switchers.GameProcessor
	Logger           switchers.Logger
	// contains filtered or unexported fields
}

Bot handles interactions with Telegram users

func (*Bot) ForwardMessage

func (b *Bot) ForwardMessage(playerID string, messageText string, messageID string, messageOwnerID string)

ForwardMessage forwards message to Telegram user

func (*Bot) SendMessage

func (b *Bot) SendMessage(playerID string, message string)

SendMessage sends message to Telegram user

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

Jump to

Keyboard shortcuts

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