send single-image episodes as photoas
This commit is contained in:
parent
30987b37b6
commit
6116290b33
@ -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 = []
|
||||||
|
Loading…
Reference in New Issue
Block a user