patch d6b83b6ed9dfd2c1692e79da8b54046f96e059f5
Author: E. Bosch <presidev@AT@gmail.com>
Date: Tue Jun 6 00:09:40 CEST 2023
* telegram: Add "media_dir" option to set the download media directory outside
of "config_dir" that didn't make sense, but keep it for compatibility if
"media_dir" is not set
hunk ./irgramd 81
+ tornado.options.define('media_dir', default=None, metavar='PATH', help='Directory where Telegram media files are downloaded, default "media" in `config_dir`')
hunk ./telegram.py 41
+ self.media_dir = settings['media_dir']
hunk ./telegram.py 71
- self.telegram_media_dir = os.path.join(self.config_dir, 'media')
+ self.telegram_media_dir = self.media_dir or os.path.join(self.config_dir, 'media')