send single-image episodes as photoas

This commit is contained in:
bakatrouble 2019-03-31 23:40:48 +03:00
parent 30987b37b6
commit 6116290b33

View File

@ -50,7 +50,7 @@ class TapasFeedModuleConfig(FeedModuleConfig):
imgs.append(img['src']) imgs.append(img['src'])
if len(imgs) == 1: if len(imgs) == 1:
bot.send_document(chat_id, imgs[0], caption=caption) bot.send_photo(chat_id, imgs[0], caption=caption)
if len(imgs) > 1: if len(imgs) > 1:
with TemporaryDirectory() as d: with TemporaryDirectory() as d:
ims = [] ims = []