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
ProfileTelegram
6 commands0 envUpdated 5d agoCreated Sep 2, 2026
Back to folder

commands/_start.js

javascript · 89 lines

Raw
1/**#command2name: /start3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12if (chat.type != "private") return;13let keyboard = {14  keyboard: [15    [16      {17        text: "📢 Channel",18        style: "primary",19        request_chat: {20          request_id: 1,21          chat_is_channel: true,22          request_title: true23        }24      },25      {26        text: "👥 Group",27        style: "primary",28        request_chat: {29          request_id: 2,30          chat_is_channel: false,31          request_title: true32        }33      }34    ],35    [36      {37        text: "🤖 Bot",38        style: "success",39        request_user: {40          request_id: 3,41          user_is_bot: true,42          request_name: true43        }44      },45      {46        text: "👤 User",47        style: "success",48        request_user: {49          request_id: 4,50          user_is_bot: false,51          request_name: true52        }53      }54    ],55    [56      {57        text: "⭐ Premium Users",58        style: "danger",59        request_user: {60          request_id: 5,61          user_is_bot: false,62          user_is_premium: true,63          request_name: true64        }65      }66    ]67  ],68  resize_keyboard: true,69  one_time_keyboard: false70}71 72let text = `Hey welcome to @${bot.name}73Using this bot you can get anyone chat id 74 75Your id : <code> ${user.id} </>76use /help for more details 77 78use /me to get your details 79 80Please select a chat to share with me:81`82// Send message with the custom keyboard83Api.sendMessage({84  chat_id: chat.id,85  text: text,86  reply_markup: keyboard,87  parse_mode: "html",88  message_effect_id: "5107584321108051014"89})