修复 restricts 无法触发洪水限制的逻辑

This commit is contained in:
洛水居室 2022-06-22 21:55:27 +08:00
parent d2bb329c87
commit 6062d9d796
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -149,9 +149,9 @@ def restricts(filters_chat: ChatType = filters.ALL, return_data=None, try_delete
except BadRequest as error:
Log.warning("删除消息失败", error)
return return_data
if count >= 1:
context.user_data["usage_count"] = count - 1
else:
if count >= 1:
context.user_data["usage_count"] = count - 1
context.user_data["command_time"] = time.time()