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]
@@ -205,11 +205,20 @@
ctx.reply(`โ
Successfully appointed User ${targetUserId} as ๐ก๏ธ ADMIN.`, { parse_mode: 'HTML' });
- bot.telegram.sendMessage(
- targetUserId,
- `๐ Congratulations!\n\nYou have been appointed as an Admin ๐ก๏ธ by the Owner.\nYou can now use /admin to manage credits and plans.`,
- { parse_mode: 'HTML' }
- ).catch(() => {});
+ const congratsMsg = `๐ 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.`;
+
+ bot.telegram.sendMessage(targetUserId, congratsMsg, { parse_mode: 'HTML' }).catch(err => {
+ console.error(`Failed to send congratulation notification to ${targetUserId}:`, err.message);
+ });
} catch (err) {
console.error("addadmin error:", err);
ctx.reply(`โ Failed to appoint admin: ${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.