telegram

package
v0.0.0-...-9bdd6bf Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: GPL-3.0 Imports: 11 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
}

func NewBot

func NewBot(
	bot *tgbotapi.BotAPI,
	con *config.IniConf,
	version string,
	messages config.Messages,
	chatRepository storage.ChatRepository,
	services *service.Services,
) *Bot

func (*Bot) CronInit

func (b *Bot) CronInit(scheduler *cron.Cron)

func (*Bot) CronStart

func (b *Bot) CronStart()

func (*Bot) SendTestMessage

func (b *Bot) SendTestMessage(chatId int64) error

func (*Bot) SendWelcomeMessage

func (b *Bot) SendWelcomeMessage(chatId int64)

func (*Bot) Start

func (b *Bot) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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