telegram

package
v0.0.0-...-6b5fd69 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token string
}

type Listener

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

func NewListener

func NewListener(ctx context.Context, api *tgbotapi.BotAPI) (*Listener, error)

func (*Listener) Listen

func (l *Listener) Listen(ctx context.Context, handler comm.Handler) error

type Messenger

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

func NewMessenger

func NewMessenger(ctx context.Context, api *tgbotapi.BotAPI) (*Messenger, error)

func (*Messenger) Message

func (m *Messenger) Message(message comm.Message) error

Jump to

Keyboard shortcuts

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