telebot

package
v0.0.0-...-af2c3ad Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SubscribedUsers = make(map[int]bool)
)

Functions

This section is empty.

Types

type Bot

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

func MustInit

func MustInit(ctx context.Context, logger *slog.Logger, repo repository.SubscriberRepository) *Bot

func New

func New(ctx context.Context, logger *slog.Logger, repo repository.SubscriberRepository) (*Bot, error)

func (*Bot) NotifySubscribed

func (b *Bot) NotifySubscribed(ctx context.Context, message string) error

func (*Bot) Run

func (b *Bot) Run()

func (*Bot) Stop

func (b *Bot) Stop()

Jump to

Keyboard shortcuts

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