telegrambot

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 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 Notifier added in v0.4.5

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

func NewNotifier added in v0.4.5

func NewNotifier(config *NotifierConfig) (*Notifier, error)

func (*Notifier) Notify added in v0.4.5

func (n *Notifier) Notify(ctx context.Context, subject string, message string) (*notifier.NotifyResult, error)

func (*Notifier) SetLogger added in v0.4.5

func (n *Notifier) SetLogger(logger *slog.Logger)

type NotifierConfig added in v0.4.5

type NotifierConfig struct {
	// Telegram Bot API Token。
	BotToken string `json:"botToken"`
	// Telegram Chat ID。
	ChatId string `json:"chatId"`
}

Jump to

Keyboard shortcuts

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