ehForwarderBot / efb-telegram-master

EFB Telegram Master Channel, a channel for EH Forwarder Bot.
GNU Affero General Public License v3.0
223 stars 78 forks source link

Allow ETM to use locally hosted Bot API to increase file size limit #107

Closed blueset closed 2 years ago

blueset commented 3 years ago

Telegram recently released their source for the Bot API server offers an almost identical interface as the cloud one. The local mode of the server software allows the provider to eliminate the bot-only file size limit for upload and download, which solves the issue where users may need to transmit files larger that the existing limit.

https://github.com/tdlib/telegram-bot-api

API change

Entry point

Add options in the config file to allow users to specify their own entry points

Upload

No change is needed as uploading must go through the server program

Download

The server software, when a file is received and queried, downloads the file onto the hosting server, and requests the user to expose a separate HTTP interface to get the files.

Solution 1

Ask user to host a static HTTP server for the file

Pro:

Con:

Solution 2

Retrieve the file from a specific code path

Pro:

Con:

blueset commented 2 years ago

Fixed in cdda04a.