Documentation
¶
Index ¶
- Constants
- func CreateSplitZip(ctx context.Context, reader io.Reader, size int64, fileName, outputBase string, ...) error
- type Telegram
- func (t *Telegram) CannotStream() string
- func (t *Telegram) Exists(ctx context.Context, storagePath string) bool
- func (t *Telegram) Init(ctx context.Context, cfg storconfig.StorageConfig) error
- func (t *Telegram) Name() string
- func (t *Telegram) Save(ctx context.Context, r io.Reader, storagePath string) error
- func (t *Telegram) Type() storenum.StorageType
- type VideoMetadata
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 ¶
Types ¶
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
func (*Telegram) CannotStream ¶
func (*Telegram) Init ¶
func (t *Telegram) Init(ctx context.Context, cfg storconfig.StorageConfig) error
func (*Telegram) Type ¶
func (t *Telegram) Type() storenum.StorageType
type VideoMetadata ¶ added in v0.39.0
Click to show internal directories.
Click to hide internal directories.