diff --git a/plugins/genshin/gacha/gacha_log.py b/plugins/genshin/gacha/gacha_log.py index 0fc03a19..050216c0 100644 --- a/plugins/genshin/gacha/gacha_log.py +++ b/plugins/genshin/gacha/gacha_log.py @@ -216,7 +216,7 @@ class GachaLogPlugin(Plugin.Conversation, BasePlugin.Conversation): return ConversationHandler.END @conversation.state(state=INPUT_URL) - @handler.message(filters=~filters.COMMAND, block=False) + @handler.message(filters=filters.TEXT & ~filters.COMMAND, block=False) @restricts() @error_callable async def import_data_from_message(self, update: Update, _: CallbackContext) -> int: diff --git a/plugins/genshin/pay_log.py b/plugins/genshin/pay_log.py index 157b6aa4..d17caeaf 100644 --- a/plugins/genshin/pay_log.py +++ b/plugins/genshin/pay_log.py @@ -119,7 +119,7 @@ class PayLogPlugin(Plugin.Conversation, BasePlugin.Conversation): return ConversationHandler.END @conversation.state(state=INPUT_URL) - @handler.message(filters=~filters.COMMAND, block=False) + @handler.message(filters=filters.TEXT & ~filters.COMMAND, block=False) @restricts() @error_callable async def import_data_from_message(self, update: Update, _: CallbackContext) -> int: