Added audio support for spoilers

This commit is contained in:
2023-01-10 12:11:29 +01:00
parent b67b1daf7c
commit 00a408ac6c
4 changed files with 16 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ async def cmd_spoiler(app: Client, msg: Message):
"description": None,
"photo": None,
"video": None,
"audio": None,
"animation": None,
"document": None,
"caption": None,

View File

@@ -36,6 +36,8 @@ async def cmd_start(app: Client, msg: Message):
await msg.reply_cached_media(spoiler["photo"], caption=spoiler["caption"])
if spoiler["video"] is not None:
await msg.reply_cached_media(spoiler["video"], caption=spoiler["caption"])
if spoiler["audio"] is not None:
await msg.reply_cached_media(spoiler["audio"], caption=spoiler["caption"])
if spoiler["animation"] is not None:
await msg.reply_cached_media(spoiler["animation"], caption=spoiler["caption"])
if spoiler["document"] is not None: