diff --git a/plugins/commands/photos.py b/plugins/commands/photos.py index f1f0352..c895edf 100644 --- a/plugins/commands/photos.py +++ b/plugins/commands/photos.py @@ -256,7 +256,9 @@ async def cmd_remove(app: PyroClient, msg: Message): await msg.reply_text(app._("remove_request", "message", locale=user.locale)) - answer_id = await listen_message(app, msg.chat.id, timeout=600) + answer_id = await app.listen.Message( + filters.text & ~filters.me, id=filters.user(msg.from_user.id), timeout=600 + ) USERS_WITH_CONTEXT.remove(msg.from_user.id) @@ -287,7 +289,9 @@ async def cmd_remove(app: PyroClient, msg: Message): USERS_WITH_CONTEXT.append(msg.from_user.id) - answer_kind = await listen_message(app, msg.chat.id, timeout=600) + answer_kind = await app.listen.Message( + filters.text & ~filters.me, id=filters.user(msg.from_user.id), timeout=600 + ) USERS_WITH_CONTEXT.remove(msg.from_user.id)