Closed zoredeaxx closed 2 years ago
Hello
Hello,
Thanks a ton for the insight on RAM usage. Will try to increase validity of the link initially to one month and check the RAM usage.
With regards to file reference issue, I have come across couple of codes written in python for generating direct link of telegram files in which the bot forwards the media to a bin channel for storage and the reference is being made to the File ID of the stored file. The Generated Link remains valid till the time the file is available in the bin channel. If it can be of any help for further development of the code.
Eagerly looking forward for more improvements in the code.
Regards.
Thanks for the channel idea. I'll see what I can do. Telegram says that FileRefrence must be cached in client and if it's invalid, I should use messages.getMessages to get it again. I shall go and experiment with it to see what happens...
Hello,
Thanks once again for considering the suggestion... Your prompt response is highly appreciable.
Just a small query with regards to format for setting BOLT_DB_PATH environment variable. Will setting any 'name' do or it has to be in 'name.db' format.
Eagerly looking for testing the upgrade.
Regards
Hello Any arbitrary value will work.
Hello, Thanks a ton once again. Regards,
Hello,
Really appreciate your efforts towards improving the code.
Can you please confirm about the validity of the Generated Link? Is it maximum of 1 day in current context and dependent on the value of memory cache. If that so, what impact would it have to further increase persistent data storage in RAM in terms of RAM usage/requirement.
Is there a possibility of increasing generated link validity by storing it in some kind of session storage/database OR making use of telegram file id instead of uuid for generating the link so that it can be fetched later permanently... .
Regards.