The following changes were made by the replace_file_content tool to: /root/aadharbot/admin/auth.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission.
[diff_block_start]
@@ -153,11 +153,25 @@
ctx.reply(`โ
Successfully updated User ${targetUserId} role to ${roleEmoji}.`, { parse_mode: 'HTML' });
- bot.telegram.sendMessage(
- targetUserId,
- `๐ Role Update Notification\n\nYour account role has been updated to ${roleEmoji} by the Owner.`,
- { parse_mode: 'HTML' }
- ).catch(() => {});
+ let notifyText = `๐ Role Update Notification\n\nYour account role has been updated to ${roleEmoji} by the Owner.`;
+ if (targetRole === ROLES.ADMIN) {
+ notifyText = `๐ CONGRATULATIONS! / เคฌเคงเคพเค เคนเฅ! ๐\n` +
+ `โโโโโโโโโโโโโโโโโโโโโโโโโโ\n` +
+ `Aapko Bot Owner dwara ๐ก๏ธ ADMIN banaya gaya hai!\n\n` +
+ `โก Aapke Admin Rights & Commands:\n` +
+ `โฃ /admin โ Open Admin Control Hub\n` +
+ `โฃ /addcredit [id] [amount] โ Add User Credits\n` +
+ `โฃ /addplan [id] [duration] โ Activate VIP Plan\n` +
+ `โ /userstatus [id] โ Check User Details\n` +
+ `โโโโโโโโโโโโโโโโโโโโโโโโโโ\n` +
+ `โจ Ab aap bot ke administrative operations manage kar sakte hain.`;
+ } else if (targetRole === ROLES.OWNER) {
+ notifyText = `๐ CONGRATULATIONS! / เคฌเคงเคพเค เคนเฅ! ๐\n` +
+ `โโโโโโโโโโโโโโโโโโโโโโโโโโ\n` +
+ `Aapko Bot ka ๐ OWNER banaya gaya hai with Full Master Privileges!`;
+ }
+
+ bot.telegram.sendMessage(targetUserId, notifyText, { parse_mode: 'HTML' }).catch(() => {});
} catch (err) {
console.error("setrole error:", err);
ctx.reply(`โ Failed to update role: ${err.message}`);
[diff_block_end]
Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.