telegram

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 13 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 : telegram bot

func NewBot

func NewBot(options BotOptions) (*Bot, error)

NewBot : create new telegram bot

func (*Bot) Run

func (bot *Bot) Run(ctx context.Context, annotationsChannel <-chan grafana.Annotation) error

Run : start telegram bot

type BotOptions

type BotOptions struct {
	Addr          string
	Token         string
	Store         *database.DbClient
	Logger        log.Logger
	Revision      string
	Template      *template.Template
	GrafanaClient *grafana.Client
	Admins        []int
}

BotOptions : telegram bot config

Jump to

Keyboard shortcuts

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