telegram

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	// Telegram Bot API Token。
	Token string `json:"token" xml:"token" yaml:"token" env:"TELEGRAM_TOKEN"`
	// Telegram Chat ID。
	ChatId int64 `json:"chat_id" xml:"chat_id" yaml:"chat_id" env:"TELEGRAM_CHAT_ID"`
}

func (*Report) SendText

func (d *Report) SendText(msg string) error

func (*Report) WithEnvConfig

func (d *Report) WithEnvConfig() error

Jump to

Keyboard shortcuts

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