tg_io

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package tg_io implements partial i/o using telegram.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

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

Downloader implements streamable file downloads of Telegram files.

func NewDownloader

func NewDownloader(api *tg.Client) *Downloader

NewDownloader creates new Downloader.

func (*Downloader) ChunkSource

func (d *Downloader) ChunkSource(size int64, loc tg.InputFileLocationClass) partio.ChunkSource

ChunkSource creates new chunk source for provided file.

Jump to

Keyboard shortcuts

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