providers

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DispatchTelegramUpdates

func DispatchTelegramUpdates(ctx context.Context, requester tgRequester, receivers []TGUpdatesReceiver, period time.Duration)

DispatchTelegramUpdates dispatches telegram updates to provided list of receivers Blocks caller

Types

type TGUpdatesReceiver

type TGUpdatesReceiver interface {
	fmt.Stringer
	ProcessUpdate(ctx context.Context, textUpdate string) error
}

TGUpdatesReceiver used to dispatch telegram updates to multiple receivers

Jump to

Keyboard shortcuts

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