Added documents support for spoilers
This commit is contained in:
@@ -30,6 +30,7 @@ async def cmd_spoiler(app: Client, msg: Message):
|
||||
"photo": None,
|
||||
"video": None,
|
||||
"animation": None,
|
||||
"document": None,
|
||||
"caption": None,
|
||||
"text": None
|
||||
}
|
||||
|
@@ -38,6 +38,8 @@ async def cmd_start(app: Client, msg: Message):
|
||||
await msg.reply_video(spoiler["video"], caption=spoiler["caption"])
|
||||
if spoiler["animation"] is not None:
|
||||
await msg.reply_animation(spoiler["animation"], caption=spoiler["caption"])
|
||||
if spoiler["document"] is not None:
|
||||
await msg.reply_document(spoiler["document"], caption=spoiler["caption"])
|
||||
if spoiler["text"] is not None:
|
||||
await msg.reply_text(spoiler["text"])
|
||||
except InvalidId:
|
||||
|
Reference in New Issue
Block a user