bkjioapk/IDBotRiom_botPublic · Bot Template
AIThis bot helps users find Telegram IDs of users, groups, channels, and bots. It provides commands to get your own ID via /me or inline queries, share chats or users for ID retrieval with /start and the wildcard handler, and includes helpful options like copy buttons and direct chat links. The bot uses TBL APIs such as Bot, Api, and user data to handle messages and inline queries securely.
Utilitytelegram idsid finderinline querychat shareutility botuser id
6 commands0 envUpdated 7d agoCreated Aug 31, 2026
commands/_inline_query.js
javascript · 55 lines
1/**#command2name: /inline_query3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12 13let results = []14 15// user info16let fullName = user.first_name + (user.last_name ? " " + user.last_name : "")17let username = user.username ? "@" + user.username : "N/A"18 19let infoText =20 "<b>Your Telegram Details</b>\n\n" +21 "<b>Name:</b> " + fullName + "\n" +22 "<b>Username:</b> " + username + "\n" +23 "<b>User ID:</b> <code>" + user.id + "</code>"24 25//adding results to be sent on inline query26results.push({27 type: "article",28 id: "1",29 title: "Get Your Telegram ID",30 description: "Click to send your Telegram user ID",31 input_message_content: {32 message_text: infoText,33 parse_mode: "HTML"34 }35})36 37/* 38// uncomment it if you want39results.push({40 type: "article",41 id: "2",42 title: "Copy ID Only",43 description: "Send only your ID",44 input_message_content: {45 message_text: "<code>" + user.id + "</code>",46 parse_mode: "HTML"47 }48})49*/50Api.answerInlineQuery({51 inline_query_id: request.id,52 results: results,53 cache_time: 3600, //caching is good for making bot faster (at the same time its has some backlog like if user changed name appear old name for 1 hour )54 is_personal: true55})