Fixed user selected emoji bug

This commit is contained in:
2023-08-12 22:36:26 +02:00
parent eadbdd1eda
commit aee5cdf6a5
2 changed files with 9 additions and 2 deletions

View File

@@ -69,6 +69,9 @@ async def handler_user_join(app: PyroClient, message: Message):
await user.set_score(0)
await user.set_mistakes(0)
if len(user.selected) > 0:
await user.set_selected([])
await asyncio.sleep(2)
verification_request = await app.send_message(
chat_id=group.id,
@@ -80,13 +83,13 @@ async def handler_user_join(app: PyroClient, message: Message):
[
InlineKeyboardButton(
app._("verify", "buttons", locale=locale),
callback_data=f"verify;{user.id}",
callback_data=f"verify:{user.id}",
)
],
[
InlineKeyboardButton(
app._("ban", "buttons", locale=locale),
callback_data=f"ban;{user.id}",
callback_data=f"ban:{user.id}",
)
],
],