🎨 Update Player Card Restricts Time

This commit is contained in:
洛水居室 2023-02-01 17:01:36 +08:00
parent 65144bb469
commit e31d4bb48c
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -144,7 +144,7 @@ class PlayerCards(Plugin, BasePlugin):
await render_result.reply_photo(message, filename=f"player_card_{uid}_{character_name}.png") await render_result.reply_photo(message, filename=f"player_card_{uid}_{character_name}.png")
@handler(CallbackQueryHandler, pattern=r"^get_player_card\|", block=False) @handler(CallbackQueryHandler, pattern=r"^get_player_card\|", block=False)
@restricts(restricts_time_of_groups=20, without_overlapping=True) @restricts(restricts_time=3, without_overlapping=True)
@error_callable @error_callable
async def get_player_cards(self, update: Update, _: CallbackContext) -> None: async def get_player_cards(self, update: Update, _: CallbackContext) -> None:
callback_query = update.callback_query callback_query = update.callback_query