tdlight-team / tdlight-telegram-bot-api

The TDLight Telegram Bot API is an actively enhanced fork of the original Bot API, featuring experimental user support, proxies, unlimited files size, and more.
https://t.me/TDLight
Boost Software License 1.0
128 stars 27 forks source link

Add knob to control the file expiration timeout. #62

Closed davidgfnet closed 3 years ago

davidgfnet commented 3 years ago

This allows tweaking the value (from the default 1h timeout) so that loaded servers do not run out of disk by setting it to a smaller value.

giuseppeM99 commented 3 years ago

Also add a parameter in the docker-entrypoint.sh like TELEGRAM_FILE_EXPIRATION_TIME or something

davidgfnet commented 3 years ago

Please take another look. Thanks!