4GB Upload
#303
|
Is it possible to upload 4GB documents, if so, how? |
Answered by
reo7sp
Sep 14, 2026
Replies: 2 comments 1 reply
|
Information on sending files are written here: https://core.telegram.org/bots/api#sending-files Either you
|
1 reply
|
Pyrogram uses Telegram MTProto as a user client; tgbot-cpp wraps the HTTP Bot API, so the capabilities and limits are different. For the hosted endpoint
A self-hosted TgBot::CurlHttpClient httpClient;
TgBot::Bot bot(token, httpClient, "http://localhost:8081");That URL works only when a local Bot API server is actually running there. tgbot-cpp cannot bypass either server-side limit; 4 GB uploads through a Premium user account are an MTProto feature, not a Bot API feature. |
0 replies
Answer selected by
reo7sp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pyrogram uses Telegram MTProto as a user client; tgbot-cpp wraps the HTTP Bot API, so the capabilities and limits are different.
For the hosted endpoint
https://api.telegram.org:getFile: up to 20 MB;file_id: no re-upload limit.A self-hosted
telegram-bot-apiserver can download without a size limit and upload up to 2000 MB, not 4 GB. To use it with tgbot-cpp:That URL works only when a local Bot API server is actually running there. tgbot-cpp cannot bypass either server-side limit; 4 GB uploads thro…