telegram

package module
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

README

telegram-go

Usage

  • How to import?
go get -u github.com/Cellularhacker/telegram-go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMonitor

func GetMonitor() tb.Recipient

func GetNormal

func GetNormal() tb.Recipient

func Init added in v0.0.2

func Init(ServerAndNodeName string, AccessToken string, ChatID string, MonitorChatID ...string)

func SendFailed

func SendFailed(location string, err error)

func SendMessage

func SendMessage(message string, silent bool, chat ...tb.Recipient)

func SendMessageAt

func SendMessageAt(message string, at time.Time, silent bool, chat ...tb.Recipient)

func SendStarted

func SendStarted(hostname string, localIP string, pubIP string)

func SendStopped

func SendStopped(hostname string, localIP, pubIP string)

Types

type Chat

type Chat struct {
}

type MonitorChat added in v0.0.7

type MonitorChat Chat

func (MonitorChat) Recipient added in v0.0.7

func (mc MonitorChat) Recipient() string

type NormalChat added in v0.0.7

type NormalChat Chat

func (NormalChat) Recipient added in v0.0.7

func (nc NormalChat) Recipient() string

Jump to

Keyboard shortcuts

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