|
As I have mentioned, why is the upload size so less when telegram allows 2GB + 2GB* ? |
Answered by
reo7sp
Sep 14, 2026
Replies: 1 comment
|
The 50 MB limit is imposed by the hosted Telegram Bot API, not by tgbot-cpp. There are three distinct cases:
For the local server, point the third TgBot::CurlHttpClient httpClient;
TgBot::Bot bot(token, httpClient, "http://localhost:8081");
|
0 replies
Answer selected by
reo7sp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The 50 MB limit is imposed by the hosted Telegram Bot API, not by tgbot-cpp. There are three distinct cases:
file_id: Telegram reuses the stored file, so it is not uploaded again.api.telegram.org: general files are limited to 50 MB.telegram-bot-apiserver: uploads are supported up to 2000 MB and downloads have no size limit.For the local server, point the third
Botconstructor argument to it:localhost:8081is only an example; the official server must be installed, configured and listening on that address.