notifier

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

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TelegramEnabled

func TelegramEnabled() bool

func TelegramInit

func TelegramInit(token string, chatID int64, opts ...TelegramOption)

TelegramInit инициализирует Telegram-отправитель. Можно добавить опции через WithTelegram*.

func TelegramSend

func TelegramSend(ctx context.Context, text string) error

func TelegramSendAsync

func TelegramSendAsync(text string)

Types

type TelegramOption

type TelegramOption func(*telegramState)

func WithTelegramDisablePreview

func WithTelegramDisablePreview(disable bool) TelegramOption

func WithTelegramHTTPClient

func WithTelegramHTTPClient(c *http.Client) TelegramOption

func WithTelegramParseMode

func WithTelegramParseMode(mode string) TelegramOption

Jump to

Keyboard shortcuts

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