From f832148537be05f7a5387b56f43c3d581d1662b4 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 6 Sep 2019 16:22:32 +0300 Subject: [PATCH] send morj as photo --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 15b23ee..73569c1 100755 --- a/main.py +++ b/main.py @@ -239,7 +239,7 @@ def morj(bot: Bot, update: Update): text = update.effective_message.text[6:] fname = '/tmp/morj{}.png'.format(uuid4()) draw_morj(text, fname) - update.effective_message.reply_document(open(fname, 'rb')) + update.effective_message.reply_photo(open(fname, 'rb')) os.unlink(fname)