telegram

package
v0.0.0-...-8a31c25 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelegramService

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

TelegramService ...

func NewTelegramService

func NewTelegramService(botToken string, log *slog.Logger) (tg *TelegramService, err error)

NewTelegramService ...

func (*TelegramService) ConvertMessage

func (tg *TelegramService) ConvertMessage(data []byte) (services.ServiceMessage, error)

func (*TelegramService) ID

func (tg *TelegramService) ID() string

ID ...

func (*TelegramService) Logger

func (tg *TelegramService) Logger() *slog.Logger

func (*TelegramService) NewClient

func (tg *TelegramService) NewClient() (services.PumpClient, error)

func (*TelegramService) PushMessage

func (*TelegramService) SquashAndPushMessage

func (tg *TelegramService) SquashAndPushMessage(pclient services.PumpClient, smsgs []services.ServiceMessage, fc services.FeedbackCollector) (status services.PushStatus)

func (*TelegramService) String

func (tg *TelegramService) String() string

String ...

func (*TelegramService) Validate

func (tg *TelegramService) Validate(data []byte) error

Validate ...

Jump to

Keyboard shortcuts

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