eat fix a bug

This commit is contained in:
xtaodada 2022-05-22 22:10:01 +08:00
parent 81ee5e9743
commit c46fc314f3
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -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"):