Support for TDLib and Bot API file ID for mtcute
npm install @mtcute/file-idš API Reference
This package is used internally by @mtcute/core to parse, serialize
and manipulate TDLib and Bot API compatible File IDs, but can also be used
for any other purposes.
This is a list of files from TDLib repository, from which most of the code was taken:
- td/telegram/files/FileManager.cpp
- td/telegram/files/FileLocation.hpp
- td/telegram/PhotoSizeSource.h
- td/telegram/PhotoSizeSource.hpp
- td/telegram/Version.h
Additionally, some of the test cases were taken from a similar Python
library, luckydonald/telegram_file_id