telegram

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func NewBot

func NewBot(token string, manager *core.SessionManager, allowedUsers []int64) (*Bot, error)

func (*Bot) Run

func (b *Bot) Run(ctx context.Context) error

type BotAdapter

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

func (*BotAdapter) Name

func (b *BotAdapter) Name() string

func (*BotAdapter) Run

func (b *BotAdapter) Run(ctx context.Context, deps core.Deps) error

func (*BotAdapter) ScheduleNotify

func (b *BotAdapter) ScheduleNotify(ctx context.Context, channel, message string) error

type DebouncedUpdater

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

func NewDebouncedUpdater

func NewDebouncedUpdater(bot botSender, chatID int64, msgID int) *DebouncedUpdater

func (*DebouncedUpdater) Append

func (d *DebouncedUpdater) Append(text string)

func (*DebouncedUpdater) Finalize

func (d *DebouncedUpdater) Finalize()

func (*DebouncedUpdater) SetError

func (d *DebouncedUpdater) SetError(text string)

Jump to

Keyboard shortcuts

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