telegram

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

Bot describes Telegram bot

func NewBot

func NewBot(ctx context.Context, cfg *viper.Viper, dq *net.DownloadQueue, gs *storage.GlobalStorage, gh *github.Client) (*Bot, error)

NewBot creates new instance of Bot

func (*Bot) Start

func (b *Bot) Start()

Start starts to listen the bot updates channel

func (*Bot) Stop

func (b *Bot) Stop()

Stop stops the bot

Jump to

Keyboard shortcuts

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