telegram

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyConfig

type NotifyConfig struct {
	Token  string `yaml:"token"`
	ChatID string `yaml:"chat_id"`
}

NotifyConfig is the telegram notification configuration

func (NotifyConfig) Send

func (c NotifyConfig) Send(subject base.Subject) error

Send is the wrapper for SendTelegramNotification

func (NotifyConfig) SendTelegramNotification

func (c NotifyConfig) SendTelegramNotification(subject base.Subject) error

SendTelegramNotification will send the notification to telegram.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳