Documentation ¶
Index ¶
- type TelegramService
- func (tg *TelegramService) ConvertMessage(data []byte) (services.ServiceMessage, error)
- func (tg *TelegramService) ID() string
- func (tg *TelegramService) Logger() *slog.Logger
- func (tg *TelegramService) NewClient() (services.PumpClient, error)
- func (tg *TelegramService) PushMessage(pclient services.PumpClient, smsg services.ServiceMessage, ...) (status services.PushStatus)
- func (tg *TelegramService) SquashAndPushMessage(pclient services.PumpClient, smsgs []services.ServiceMessage, ...) (status services.PushStatus)
- func (tg *TelegramService) String() string
- func (tg *TelegramService) Validate(data []byte) error
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) Logger ¶
func (tg *TelegramService) Logger() *slog.Logger
func (*TelegramService) NewClient ¶
func (tg *TelegramService) NewClient() (services.PumpClient, error)
func (*TelegramService) PushMessage ¶
func (tg *TelegramService) PushMessage(pclient services.PumpClient, smsg services.ServiceMessage, fc services.FeedbackCollector) (status services.PushStatus)
func (*TelegramService) SquashAndPushMessage ¶
func (tg *TelegramService) SquashAndPushMessage(pclient services.PumpClient, smsgs []services.ServiceMessage, fc services.FeedbackCollector) (status services.PushStatus)
func (*TelegramService) Validate ¶
func (tg *TelegramService) Validate(data []byte) error
Validate ...
Click to show internal directories.
Click to hide internal directories.