diff --git a/modules/commands/start.py b/modules/commands/start.py index ac7e6df..55d42ab 100644 --- a/modules/commands/start.py +++ b/modules/commands/start.py @@ -33,13 +33,13 @@ async def cmd_start(app: Client, msg: Message): try: spoiler = col_spoilers.find_one( {"_id": ObjectId(msg.command[1])} ) if spoiler["photo"] is not None: - await msg.reply_document(spoiler["photo"], caption=spoiler["caption"]) + 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["animation"] is not None: await msg.reply_cached_media(spoiler["animation"], caption=spoiler["caption"]) if spoiler["document"] is not None: - await msg.reply_document(spoiler["document"], caption=spoiler["caption"]) + await msg.reply_cached_media(spoiler["document"], caption=spoiler["caption"]) if spoiler["text"] is not None: await msg.reply_text(spoiler["text"]) except InvalidId: