telegram

package
v0.93.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bot    *telego.Bot
	ChatID telego.ChatID
)
View Source
var (
	ErrReadFile                 = errors.New("failed to read file")
	ErrFailedSendDocument       = errors.New("failed to send document")
	ErrFailedMarshalFileMessage = errors.New("failed to marshal file message")
)

Functions

This section is empty.

Types

type TelegramStorage

type TelegramStorage struct{}

func (*TelegramStorage) Delete

func (t *TelegramStorage) Delete(ctx context.Context, detail *types.StorageDetail) error

func (*TelegramStorage) GetFile

func (t *TelegramStorage) GetFile(ctx context.Context, detail *types.StorageDetail) ([]byte, error)

func (*TelegramStorage) Init

func (t *TelegramStorage) Init(ctx context.Context)

func (*TelegramStorage) Save

func (t *TelegramStorage) Save(ctx context.Context, filePath string, _ string) (*types.StorageDetail, error)

Jump to

Keyboard shortcuts

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