telegram

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Admin int64
	Token string
	Proxy string
}

func (Config) Validate

func (c Config) Validate() error

type Telegram

type Telegram struct {
	// contains filtered or unexported fields
}

func New

func New(
	cfg *Config,
	log *slog.Logger,
	tel telemetry.Telemetry,
	svc service.ServerService,
	domain string,
) (*Telegram, error)

func (*Telegram) Name

func (tg *Telegram) Name() string

func (*Telegram) Notify

func (tg *Telegram) Notify(ctx context.Context, n *modules.Notification) error

func (*Telegram) Start

func (tg *Telegram) Start() error

Jump to

Keyboard shortcuts

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