From d90e7ae2bcd31aa3f43e53a4d7f36635d09d4f17 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 11 Apr 2019 02:18:42 +0300 Subject: [PATCH] fix tapas comic merging --- feeds/modules/tapas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feeds/modules/tapas.py b/feeds/modules/tapas.py index 4b2e4f3..064e353 100644 --- a/feeds/modules/tapas.py +++ b/feeds/modules/tapas.py @@ -69,5 +69,6 @@ class TapasFeedModuleConfig(FeedModuleConfig): offset += im.size[0] new_im_path = os.path.join(d, 'combined.jpg') new_im.save(new_im_path) - bot.send_document(chat_id, new_im_path, caption=caption) + with open(new_im_path, 'rb') as f: + bot.send_document(chat_id, new_im_path, caption=caption) yield eid