telegram

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Message string `json:"message"`
}

Message is the message the bot can send it needs to be of type: TelegramNotificationCommandType

type Telegram

type Telegram struct {
	chik.BaseHandler
	Token        string   `json:"token" mapstructure:"token"`
	AllowedUsers []string `json:"allowed_users" mapstructure:"allowed_users"`
	// contains filtered or unexported fields
}

Telegram handler

func New

func New() *Telegram

New creates a telegram handler. useful for sending notifications about events

func (*Telegram) HandleMessage

func (h *Telegram) HandleMessage(message *chik.Message, controller *chik.Controller) error

func (*Telegram) String

func (h *Telegram) String() string

func (*Telegram) Teardown

func (h *Telegram) Teardown()

func (*Telegram) Topics

func (h *Telegram) Topics() []types.CommandType

Jump to

Keyboard shortcuts

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