MAHAKAL92/DKIDPROBOTPublic · Bot Template

ProfileTelegram

AIThis bot helps users retrieve Telegram IDs for users, groups, channels, and bots. It offers a start command that presents a keyboard to request chat or user information, and a * command that processes shared chats or messages to return the ID with convenient copy and open links. Additional commands provide help, user details, and an inline query that can send the user’s own ID or details directly.

Utilityidchat iduser idgroup idchannel idtelegram
5 commands0 envUpdated 12d agoCreated Oct 18, 2026
Back to folder

commands/_start.js

javascript · 80 lines

Raw
1/**#command2name: /start3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12if (chat.type != "private") return;13let keyboard = {14  keyboard: [15    [{16        text: "Channel",17        request_chat: {18          request_id: 1,19          chat_is_channel: true,20          request_title: true21        }22      },23      {24        text: "Group",25        request_chat: {26          request_id: 2,27          chat_is_channel: false,28          request_title: true29        }30      }31    ],32    [{33        text: "Bot",34        request_user: {35          request_id: 3,36          user_is_bot: true,37          request_name: true38        }39      },40      {41        text: "User",42        request_user: {43          request_id: 4,44          user_is_bot: false,45          request_name: true46        }47      }48    ],49    [{50      text: "Premium Users",51      request_user: {52        request_id: 5,53        user_is_bot: false,54        user_is_premium: true,55        request_name: true56      }57    }]58  ],59  resize_keyboard: true,60  one_time_keyboard: false61}62 63let text = `Hey welcome to @${bot.name}64Using this bot you can get anyone chat id 65 66Your id : <code> ${user.id} </>67use /help for more details 68 69use /me to get your details 70 71Please select a chat to share with me:72`73// Send message with the custom keyboard74Api.sendMessage({75  chat_id: chat.id,76  text: text,77  reply_markup: keyboard,78  parse_mode: "html",79  message_effect_id: "5107584321108051014"80})