Skip to content
Discussion options

You must be logged in to vote

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:

  • multipart upload: up to 50 MB for general files;
  • download through getFile: up to 20 MB;
  • sending an existing Telegram file_id: no re-upload limit.

A self-hosted telegram-bot-api server can download without a size limit and upload up to 2000 MB, not 4 GB. To use it with tgbot-cpp:

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 thro…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@silincone
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by reo7sp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants