tg_io

package
v0.0.0-...-d21987e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 5 Imported by: 0

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