Is there any way to bypass the download size limit of 20MB ? #557
-
As my boot need to download file, proccess it, and return to user, I found that telegram is blocking me if the file is too big. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can't do this via public Bot API in due to their limitations: https://core.telegram.org/bots/api#getfile, https://core.telegram.org/bots/api#sending-files But you can do this via local Bot API Server: https://core.telegram.org/bots/api#using-a-local-bot-api-server Local server:Can be compiled from official repository or used via third-party Docker images https://hub.docker.com/r/aiogram/telegram-bot-api Client API:aiogram can be used at the same time with one of Client API library like Pyrogram, Telethon or tdlib for working with files. |
Beta Was this translation helpful? Give feedback.
You can't do this via public Bot API in due to their limitations: https://core.telegram.org/bots/api#getfile, https://core.telegram.org/bots/api#sending-files
But you can do this via local Bot API Server: https://core.telegram.org/bots/api#using-a-local-bot-api-server
Or just use Client API directly for working with files. local Bot API Server has the same limitations as Client API.
Local server:
Can be compiled from official repository or used via third-party Docker images https://hub.docker.com/r/aiogram/telegram-bot-api
And
--local
mode is required (TELEGRAM_LOCAL=1
env. var if you use my Docker image)Client API:
aiogram can be used at the same time with one of Client API library like P…