Rongronggg9 / RSS-to-Telegram-Bot

A Telegram RSS bot that cares about your reading experience
https://t.me/RSStT_Bot
GNU Affero General Public License v3.0
1.54k stars 277 forks source link

Feature Request: 上传大于20MB的媒体文件 #191

Open cubarco opened 2 years ago

cubarco commented 2 years ago

大部分播客节目一期的音频文件大小都会超过20MB,可否增加支持大文件上传?

cubarco commented 2 years ago

看了下,限制是在UploadMediaRequest的inputMediaDocumentExternal限制大小是20MB。

那么能否支持使用自建Bot API上传大文件?或者缓存本地后用send_file、upload_file上传呢(确实会有额外损耗)?

Rongronggg9 commented 2 years ago

RSStT does not use HTTP bot API, but MTProto API. Thus, a self-hosted HTTP bot API instance would not work with RSStT, just like the official one.

It is possible to download and upload media to work around the limitation. It is not implemented yet, however, as the use cases are rare but data traffic concerns are common. No matter whether implemented or not in the future, the public demo would not enable such a feature, in order to save the data traffic and avoid being DDoS (but self-hosted bots will be able to enable it, of course).