TgKit library and website are still in early development!

File Class

extends Base

Represents a file ready to be downloaded. The file can be downloaded via the link

Properties

client Client

See the code

fileId string

Identifier for this file, which can be used to download or reuse the file

See the code

filePath string

File path

See the code

fileSize number

File size in bytes, if known

See the code

fileUniqueId string

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

See the code