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
120 stars 26 forks source link

TTL of data cleaned inside Bot API optimize_memory (enhancement of #40) #41

Closed cavallium closed 3 years ago

cavallium commented 3 years ago

If possible, add an hardcoded TTL of few seconds to clean only data older than a few minutes, to avoid missing updates or missing data in new updates.

This shouldn't be configurable since this TTL, of few seconds, is made only to prevent this kind of problems, and not to ensure long-term data presence after optimize_memory.