+ Show agent and player name when set security pin

This commit is contained in:
Wong Yiek Heng 2025-10-04 10:58:35 +08:00
parent eaec6bd5a5
commit ad85ec0bfc

View File

@ -45,9 +45,9 @@ async def set_security_handler(update: Update, context: ContextTypes.DEFAULT_TYP
return
await update.message.reply_text('Start Setting Security Pin ...')
try:
bot.set_security_pin_api(context.args[0])
result = bot.set_security_pin_api(context.args[0])
del bot
await update.message.reply_text('Security Pin Set Done!')
await update.message.reply_text(f"Done setting Security Pin for {result['f_username']} - {result['t_username']} !")
except Exception as e:
await update.message.reply_text(f'Error: {e}')