telegram

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelegramNotifier

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

func New

func (*TelegramNotifier) Notify

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

type TelegramNotifierConfig

type TelegramNotifierConfig struct {
	ApiToken string `json:"apiToken"`
	ChatId   int64  `json:"chatId"`
}

Jump to

Keyboard shortcuts

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