soumyadeep/TgDocsXBotPublic · Bot Template

TgDocsXBot is a Telegram bot template designed to help developers instantly look up Telegram Bot API documentation directly inside any chat using Inline Queries.

ProfileTelegram
7 commands3 envUpdated 5d agoCreated Jun 10, 2026
Back to folder

commands/_details.js

javascript · 55 lines · click line # to share

1/**#command2name: /details3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let stat = {13  "last_updated": process.env.update_date,14  "v": process.env.version,15  "platform_link": "https://telebothost.com",16  "platform_name": "TeleBotHost"17}18 19let text = `20<b>Available Data</b>:21 22• <code>botapi</code> - Bot API methods & types.23• <code>miniapp</code> - Mini App methods & types.24• <code>bot features</code> - Bot features.25• <code>bot FAQs</code> - Common bot questions.26• <code>errors </> - Common errors reason.27 28 29<b>Last updated on </><code>${stat.last_updated}</>30 31<b>Bot API</> <code>v${stat.v}</>32 33This Bot Hosted On <b><a href="${stat.platform_link}">${stat.platform_name}</a></b>34`35let keyboard = [36  [{37    text: "Go Back",38    callback_data: "/start"39  }]40]41if (request.data) {42  Api.editMessageText({43    message_id: request.message.message_id,44    text,45    disable_web_page_preview: true,46    parse_mode: "html",47    reply_markup: {48      inline_keyboard: keyboard49    }50  })51} else {52  msg.reply(text, {53    parse_mode: "html"54  })55}