touhidul02580/nahid_otp_botPublic · Bot Template

AIThis bot helps users find Telegram IDs for users, groups, channels, and bots. It handles forwarded messages and chat-share updates to return the corresponding chat or user ID with copy and open-chat buttons. It also provides a /me command for the current user's details and supports inline queries to share personal Telegram info. The /start menu presents share buttons for channels, groups, bots, users, and premium users.

Utilitytelegram idchat iduser idinline querychat shareid finder
ProfileTelegram
6 commands0 envUpdated 2d agoCreated Jul 31, 2026
Back to folder

commands/_me.js

javascript · 23 lines

Raw
1/**#command2name: /me3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let userInfo = `<b>Your Information</b>13 14<b>Your ID:</b> <code>${user.id}</code>15<b>Name:</b> ${user.first_name}${user.last_name ? ' ' + user.last_name : ''}16<b>Username:</b> ${user.username ? '@' + user.username : 'Not set'}17${user.language_code ? `<b>Language:</b> ${user.language_code}` : ''}18${user.premium ? `<b>Telegram Premium:</b> Yes` : ''}19<b>Chat ID:</b> <code>${chat.id}</code>`;20 21msg.reply(userInfo, {22  parse_mode: "HTML"23});