telegram

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TelegramEndpointName = "telegram"
)

Variables

This section is empty.

Functions

func WithListenAddress

func WithListenAddress(listen string) *endpoints.ConfigParams

func WithWebhookPath

func WithWebhookPath(path string) *endpoints.ConfigParams

func WithWebhookURL

func WithWebhookURL(url string) *endpoints.ConfigParams

Types

type TelegramEndpoint

type TelegramEndpoint struct {
	// contains filtered or unexported fields
}

func InitializeTelegramEndpoint

func InitializeTelegramEndpoint(token string, exitChan <-chan struct{}, database db.Database, configParams ...*endpoints.ConfigParams) (*TelegramEndpoint, error)

func (*TelegramEndpoint) Process

func (e *TelegramEndpoint) Process()

func (*TelegramEndpoint) Send

func (e *TelegramEndpoint) Send(url, filter, message string) error

Jump to

Keyboard shortcuts

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