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.
Click to show internal directories.
Click to hide internal directories.