messaging

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TelegramWithCustomClient

func TelegramWithCustomClient(c *http.Client) common.Option[telegramBot]

func TelegramWithSanitizer

func TelegramWithSanitizer(v Sanitizer) common.Option[telegramBot]

func TelegramWithTarget

func TelegramWithTarget(v string) common.Option[telegramBot]

func TelegramWithToken

func TelegramWithToken(v string) common.Option[telegramBot]

Types

type Sanitizer

type Sanitizer interface {
	Sanitize(value string) string
}

func NoopSanitizer

func NoopSanitizer() Sanitizer

func StandardSanitizer

func StandardSanitizer() Sanitizer

type Sender

type Sender interface {
	SendMessage(message string) error
	common.Init[Sender]
}

func NewTelegramSender

func NewTelegramSender(opts ...common.Option[telegramBot]) Sender

Jump to

Keyboard shortcuts

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