diff --git a/bots/modules/robot.py b/bots/modules/robot.py index 8024395..28edbbf 100644 --- a/bots/modules/robot.py +++ b/bots/modules/robot.py @@ -1,3 +1,4 @@ +import logging import os from tempfile import TemporaryDirectory @@ -42,6 +43,7 @@ class RobotBotModuleConfig(TelegramBotModuleConfig): file = ctx.bot.get_file(file_id) filename = os.path.basename(file.file_path) + logging.warning(str(file.__dict__)) with TemporaryDirectory() as d: file_path = os.path.join(d, filename) file.download(file_path)