telegram

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package telegram is a module that sends notification to a Telegram chat when certain conditions trigger

Index

Constants

View Source
const (
	Name        = "telegram"
	Description = "A module that sends notifications via Telegram chat"
	Author      = "Muraena Team"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Telegram

type Telegram struct {
	session.SessionModule

	Enabled  bool
	BotToken string
	ChatID   []string
}

Telegram module

func Load

func Load(s *session.Session) (m *Telegram, err error)

Load configures the module by initializing its main structure and variables

func Self

func Self(s *session.Session) *Telegram

func (*Telegram) Author

func (module *Telegram) Author() string

Author returns the module author

func (*Telegram) Description

func (module *Telegram) Description() string

Description returns the module description

func (*Telegram) Name

func (module *Telegram) Name() string

Name returns the module name

func (*Telegram) PrintConfig

func (module *Telegram) PrintConfig()

PrintConfig shows the actual Telegram configuration

func (*Telegram) Prompt

func (module *Telegram) Prompt()

Prompt prints module status based on the provided parameters

func (*Telegram) Send

func (module *Telegram) Send(message string)

Jump to

Keyboard shortcuts

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