2023-11-01 14:05:45 +03:00
|
|
|
# @mtcute/file-id
|
2021-04-29 22:30:36 +03:00
|
|
|
|
2023-11-01 14:05:45 +03:00
|
|
|
📖 [API Reference](https://ref.mtcute.dev/modules/_mtcute_file_id.html)
|
|
|
|
|
2024-03-06 21:20:44 +03:00
|
|
|
This package is used internally by `@mtcute/core` to parse, serialize
|
2021-04-29 22:30:36 +03:00
|
|
|
and manipulate TDLib and Bot API compatible File IDs, but can also be used
|
|
|
|
for any other purposes.
|
|
|
|
|
|
|
|
## Acknowledgements
|
|
|
|
This is basically a port of a portion of TDLib APIs, but greatly
|
|
|
|
simplified in usage and made to work seamlessly with the rest of the
|
2022-09-14 16:18:56 +03:00
|
|
|
mtcute APIs.
|
2021-04-29 22:30:36 +03:00
|
|
|
|
|
|
|
This is a list of files from TDLib repository, from which most of the code was taken:
|
|
|
|
- [td/telegram/files/FileManager.cpp](https://github.com/tdlib/td/blob/master/td/telegram/files/FileManager.cpp)
|
|
|
|
- [td/telegram/files/FileLocation.hpp](https://github.com/tdlib/td/blob/master/td/telegram/files/FileLocation.hpp)
|
|
|
|
- [td/telegram/PhotoSizeSource.h](https://github.com/tdlib/td/blob/master/td/telegram/PhotoSizeSource.h)
|
|
|
|
- [td/telegram/PhotoSizeSource.hpp](https://github.com/tdlib/td/blob/master/td/telegram/PhotoSizeSource.hpp)
|
|
|
|
- [td/telegram/Version.h](https://github.com/tdlib/td/blob/master/td/telegram/Version.h)
|
|
|
|
|
|
|
|
Additionally, some of the test cases were taken from a similar Python
|
|
|
|
library, [luckydonald/telegram_file_id](https://github.com/luckydonald/telegram_file_id)
|