{"id":17055,"date":"2026-04-09T12:01:29","date_gmt":"2026-04-09T12:01:29","guid":{"rendered":"https:\/\/www.schoolmate.eu\/en\/?post_type=tutorial&#038;p=17055"},"modified":"2026-04-09T12:01:29","modified_gmt":"2026-04-09T12:01:29","slug":"telegram-bot-setup-guide","status":"publish","type":"tutorial","link":"https:\/\/www.schoolmate.eu\/en\/tutorial\/telegram-bot-setup-guide\/","title":{"rendered":"Telegram BOT Setup Guide"},"content":{"rendered":"<h1><span style=\"font-size: 12pt;\"><b>PART 1 \u2014 CREATE YOUR BOT<\/b><\/span><\/h1>\n<p><b>Step 1: Open Telegram and find BotFather<\/b><span style=\"font-weight: 400;\"> Open the Telegram app (mobile or desktop). In the search bar, type @BotFather and select the verified account (blue checkmark). BotFather is Telegram&#8217;s official bot for managing all bots.<\/span><\/p>\n<p><b>Step 2: Start a conversation<\/b><span style=\"font-weight: 400;\"> Tap Start or send the command \/start. BotFather will reply with a list of available commands.<\/span><\/p>\n<p><b>Step 3: Create a new bot<\/b><span style=\"font-weight: 400;\"> Send the command: \/newbot BotFather will ask you two questions in sequence:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Display name \u2014 a friendly name shown in the chat header (e.g. My Awesome Bot). Can contain spaces.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Username \u2014 a unique handle ending in &#8220;bot&#8221; (e.g. my_awesome_bot). No spaces, case-insensitive.<\/span><\/li>\n<\/ol>\n<p><b>Step 4: Receive your API token<\/b><span style=\"font-weight: 400;\"> After a valid username is accepted, BotFather will send you your HTTP API token in this format: 123456789:AAFxyz1234AbcDef-EXAMPLE_TOKEN_abcde \u26a0 Copy and store this token securely. Anyone with this token can control your bot. Never commit it to a public repo or hardcode it in source.<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\"><b>PART 2 \u2014 OPTIONAL CONFIGURATION<\/b><\/span><\/h2>\n<p><b>Step 5: Set a description and profile photo<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/setdescription \u2014 shown on the bot&#8217;s profile page<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/setabouttext \u2014 shown below the bot name in chats<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/setuserpic \u2014 upload a profile photo for the bot<\/span><\/li>\n<\/ul>\n<p><b>Step 6: Add bot commands (slash menu)<\/b><span style=\"font-weight: 400;\"> Send \/setcommands to define commands that appear when users type \/ in the chat. Enter them in this format: start &#8211; Welcome and intro help &#8211; Show help message<\/span><\/p>\n<p><b>Step 7: Configure privacy mode (for group bots)<\/b><span style=\"font-weight: 400;\"> By default, bots in groups only receive messages that start with \/ or mention the bot. To receive all messages, send \/setprivacy and choose Disable. \ud83d\udca1 For personal or direct-chat bots, privacy mode doesn&#8217;t apply \u2014 skip this step.<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\"><b>PART 3 \u2014 TEST IT<\/b><\/span><\/h2>\n<p><b>Step 8: Verify the token works<\/b><span style=\"font-weight: 400;\"> Test your token by calling the Telegram Bot API in a browser or with url: https:\/\/api.telegram.org\/bot&lt;YOUR_TOKEN&gt;\/getMe A successful response returns a JSON object with your bot&#8217;s id, username, and first_name.<\/span><\/p>\n<p><b>Step 9: Revoke or regenerate the token (if needed)<\/b><span style=\"font-weight: 400;\"> If your token is ever exposed, immediately go back to BotFather and send \/revoke. Select your bot and BotFather will issue a new token. The old token is instantly invalidated.<\/span><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":""},"class_list":["post-17055","tutorial","type-tutorial","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.schoolmate.eu\/en\/wp-json\/wp\/v2\/tutorial\/17055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schoolmate.eu\/en\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/www.schoolmate.eu\/en\/wp-json\/wp\/v2\/types\/tutorial"}],"author":[{"embeddable":true,"href":"https:\/\/www.schoolmate.eu\/en\/wp-json\/wp\/v2\/users\/4"}],"wp:attachment":[{"href":"https:\/\/www.schoolmate.eu\/en\/wp-json\/wp\/v2\/media?parent=17055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}