From b2acd966c8c5ee5e454a898198300a9f75903094 Mon Sep 17 00:00:00 2001 From: juacrumar Date: Tue, 5 Dec 2023 16:08:44 +0100 Subject: [PATCH] bugfix --- src/pybliotecario/backend/telegram_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybliotecario/backend/telegram_util.py b/src/pybliotecario/backend/telegram_util.py index 1843113..1cb804d 100644 --- a/src/pybliotecario/backend/telegram_util.py +++ b/src/pybliotecario/backend/telegram_util.py @@ -219,7 +219,7 @@ def send_image(self, img_path, chat): data = {"chat_id": chat} with open(img_path, "rb") as img: files = {"photo": ("picture.jpg", img)} # Here, the "rb" thing - blabla = requests.post(self.send_img, data=data, files=files) + blabla = requests.post(self.send_img, data=data, files=files) log_request(blabla.status_code, blabla.reason, blabla.content) def send_file(self, filepath, chat):