From c46fc314f361bc110daab3ccde88e19050dc78d3 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 22 May 2022 22:10:01 +0800 Subject: [PATCH] eat fix a bug --- eat/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eat/main.py b/eat/main.py index 96c6950..29146e3 100644 --- a/eat/main.py +++ b/eat/main.py @@ -263,7 +263,7 @@ async def eat(client_: Client, context: Message): user.photo.big_file_id, f"plugins{sep}eat{sep}" + str(target_user_id) + ".jpg",) - reply_to = context.reply_to_message.message_id if context.reply_to_message else None + reply_to = context.reply_to_message.id if context.reply_to_message else None if exists(f"plugins{sep}eat{sep}" + str(target_user_id) + ".jpg"): for num in range(1, max_number + 1): if not exists(f"plugins{sep}eat{sep}eat" + str(num) + ".png"):