Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cubarco opened this issue Oct 26, 2022 · 2 comments
Open

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

cubarco opened this issue Oct 26, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@cubarco
Copy link

cubarco commented Oct 26, 2022

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

@cubarco
Copy link
Author

cubarco commented Oct 26, 2022

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

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

@Rongronggg9
Copy link
Owner

Rongronggg9 commented Oct 26, 2022

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).

@Rongronggg9 Rongronggg9 added the enhancement New feature or request label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants