ghost_bots/ghost_tg_info_botPublic · Bot Template
AIThis bot helps users find Telegram IDs for users, groups, channels, and bots. The /start command shows a keyboard that uses Telegram's chat and user share requests to capture a selected chat or user, and the wildcard handler replies with the corresponding ID. /me displays the current user's profile details, while /inline_query returns the user's Telegram info as an inline result. It also includes a /help command explaining usage and supports copying IDs via inline keyboard buttons.
Utilitytelegram-iduser-idchat-idinline-querychat-shareid-finder
6 commands0 envUpdated 5d agoCreated Sep 2, 2026
commands/_me.js
javascript · 23 lines
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});