patch 1fb88a2962a05a4a46ccec54dc3ae3b65f73ab78
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sun Oct 15 22:06:49 CEST 2023
* telegram: Add option "download_media" to control if media files must be downloaded
hunk ./irgramd 76
+ tornado.options.define('download_media', default=True, help='Enable download of any media (photos, documents, etc.), if not set only a message of media will be shown')
hunk ./telegram.py 41
+ self.download = settings['download_media']
hunk ./telegram.py 828
- local_path = await message.download_media(self.telegram_media_dir)
+ local_path = None
+ if self.download:
+ local_path = await message.download_media(self.telegram_media_dir)