soumyadeepdas/tbl_WebBotPublic ยท Community Store Listing

Demo WebApp

ProfileTelegram
14 commands0 envUpdated 19d agoCreated Oct 27, 2025
Back to folder

commands/๐Ÿ”— Make API.js

javascript ยท 44 lines ยท click line # to share

1/**#command2name: ๐Ÿ”— Make API3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let products_api_url = Webapp.getUrl("products");13let membership_api_url = Webapp.getUrl("membership");14 15Api.sendMessage({16  chat_id: chat.id,17  text: `๐Ÿ”— <b>API Demo</b>18 19Here are your available API endpoints:20 21๐Ÿ›๏ธ <b>Products API</b>22<code>${products_api_url}</code>23Returns a list of products in JSON format with name, price, and availability.24 25โœ… <b>Membership Checker API</b>26<code>${membership_api_url}</code>27Checks if a user is a member of specific Telegram channels.28Example:29<code>${membership_api_url}?user_id=123456&channels=channel1,30-19006679666</code>`,31  parse_mode: "HTML",32  reply_markup: {33    inline_keyboard: [34      [{35        text: "๐Ÿ›๏ธ Open Products API",36        url: products_api_url37      }],38      [{39        text: "โœ… Open Membership API",40        url: membership_api_url41      }]42    ]43  }44});