Documentation ¶ Index ¶ type Config func (c Config) Validate() error type Telegram func New(cfg *Config, log *slog.Logger, tel telemetry.Telemetry, ...) (*Telegram, error) func (tg *Telegram) Name() string func (tg *Telegram) Notify(ctx context.Context, n *modules.Notification) error func (tg *Telegram) Start() error 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 Source Files ¶ View all Source files config.gocontext.gonotifier.gotelegram.go Click to show internal directories. Click to hide internal directories.