telegram

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// https://core.telegram.org/api/config#upload-max-fileparts-default
	DefaultSplitSize  = 4000 * 524288 // 4000 * 512 KB
	MaxUploadFileSize = 4000 * 524288 // 4000 * 512 KB
)

Variables

This section is empty.

Functions

func CreateSplitZip added in v0.43.0

func CreateSplitZip(ctx context.Context, reader io.Reader, size int64, fileName, outputBase string, partSize int64) error

Types

type Telegram

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

func (*Telegram) CannotStream

func (t *Telegram) CannotStream() string

func (*Telegram) Exists

func (t *Telegram) Exists(ctx context.Context, storagePath string) bool

func (*Telegram) Init

func (*Telegram) JoinStoragePath

func (t *Telegram) JoinStoragePath(p string) string

func (*Telegram) Name

func (t *Telegram) Name() string

func (*Telegram) Save

func (t *Telegram) Save(ctx context.Context, r io.Reader, storagePath string) error

func (*Telegram) Type

func (t *Telegram) Type() storenum.StorageType

type VideoMetadata added in v0.39.0

type VideoMetadata struct {
	Duration int
	Width    int
	Height   int
}

Jump to

Keyboard shortcuts

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