From 70114b5d535e04918b695881514d98e637b457e3 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 15 Mar 2021 22:08:59 +0300 Subject: [PATCH] add logging --- bots/modules/robot.py | 2 ++ 1 file changed, 2 insertions(+) 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)