{"id":2590,"date":"2018-01-23T13:33:28","date_gmt":"2018-01-23T13:33:28","guid":{"rendered":"https:\/\/telegram-group.com\/?p=452"},"modified":"2018-01-23T13:33:28","modified_gmt":"2018-01-23T13:33:28","slug":"create-bot-telegram","status":"publish","type":"post","link":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/","title":{"rendered":"How To Create A Bot In Telegram"},"content":{"rendered":"<h2 style=\"direction: ltr\"><span style=\"font-weight: 400\">Bots have always been the limelight in Telegram, which sets it apart, and years ahead of its competitors.<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Given the fact that bots, that too developed by third-party developers, have existed on it for such a long time, its bot ecosystem is far more developed than other IM apps such as Messenger.<\/span><\/p>\n<p><span style=\"font-weight: 400\">While it\u2019s good to have multiple bots to interact with and make your life easier in Telegram, it\u2019s extremely tempting to create one of your own. Often times, the problem with that is that most tutorials require you to know coding, and the other ones just look too complicated to even try. The challenge isn\u2019t to merely create a bot, but to make a responsive one. These tutorials end up complicating the \u201cresponsive\u201d part, by giving scattered instructions about API and similar things.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To help you with your goal of creating a responsive Telegram bot, we have prepared a tutorial which will teach you to set up your own bot using \u201cbotfather\u201d. All you need to do, is follow the simple steps below.<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400\">Open Telegram on your phone.<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">\u00a0 \u00a02. Tap on the pen symbol in the bottom-right corner. Tap on the magnifier icon and search \u201c@botfather\u201d, and tap on BotFather.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-454 size-full\" src=\"https:\/\/telegram-group.com\/wp-content\/uploads\/2018\/01\/F8-D1-SS-4.png\" alt=\"boot\" width=\"480\" height=\"853\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">\u00a0 3. Tap \u201cStart\u201d and you\u2019ll be presented with a list of commands that you can use with the bot.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-455\" src=\"https:\/\/telegram-group.com\/wp-content\/uploads\/2018\/01\/F8-D1-SS-6.png\" alt=\"Screenshot\" width=\"480\" height=\"853\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">\u00a0 4.Send \u201c\/newbot\u201d. Send the name that you want to keep for your bot. Now, set a username for your bot. It must end with \u201cbot\u201d.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-457\" src=\"https:\/\/telegram-group.com\/wp-content\/uploads\/2018\/01\/F8-D1-SS-5.png\" alt=\"Screenshot\" width=\"480\" height=\"853\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">\u00a0 5. Congratulations, your bot has now been created. You can either use the link received in the message from BotFather, or search for your bot on Telegram. Save the API token in the message, in an easily accessible place in your device (such as a note-taking app).<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-458\" src=\"https:\/\/telegram-group.com\/wp-content\/uploads\/2018\/01\/F8-D1-SS-3.png\" alt=\"Screenshot\" width=\"480\" height=\"853\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">\u00a0 6. Open Telegram, and search for your bot. Try talking to it.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-459\" src=\"https:\/\/telegram-group.com\/wp-content\/uploads\/2018\/01\/F8-D1-SS-1.png\" alt=\"telegram Screenshot\" width=\"480\" height=\"853\" \/><\/p>\n<p><span style=\"font-weight: 400\">\u00a0 7.Well, let us guess. It didn\u2019t respond at all, did it? That is because it doesn\u2019t know how to respond, yet. Don\u2019t worry, we are here to teach you how to take care of that. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-460\" src=\"https:\/\/telegram-group.com\/wp-content\/uploads\/2018\/01\/F8-D1-SS-2.png\" alt=\"telegram Screenshot\" width=\"480\" height=\"853\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">All you need to do for this, is to create a bot server which will run in the back and provide your bot the ability to respond.<\/span><\/p>\n<h3><b>Setting up a server for your bot<\/b><\/h3>\n<p><span style=\"font-weight: 400\">Every time your bot receives a message, it sends a message, formed as an API call, to the server. The server then processes the message and sends back the pre-determined response.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Long polling and Webhooks are the two ways that your server can receive updates in the form of. <\/span><\/p>\n<p><span style=\"font-weight: 400\">In long polling, messages are periodically checked for and are responded to. It\u2019s slow and not recommended.<\/span><\/p>\n<p><span style=\"font-weight: 400\">On the other hand, Webhooks is fast, responsive, and responds to messages, whenever any are received.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In this tutorial, we are going to be using webhooks. Every webhook, is called with an \u201cupdate object\u201d. For handling your update, you need a server.<\/span><\/p>\n<p><span style=\"font-weight: 400\">While you can use anything you prefer, to create your own server, we personally used <\/span><b>node.js<\/b><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Step one, is to initialize your project.<\/span><\/p>\n<p><span style=\"font-weight: 400\">## Create new directory and enter this directory <\/span><\/p>\n<p><span style=\"font-weight: 400\">mkdir my-telegram-bot<\/span><\/p>\n<p><span style=\"font-weight: 400\">cd my-telegram-bot<\/span><\/p>\n<p><span style=\"font-weight: 400\">## Now, initialize the npm project<\/span><\/p>\n<p><span style=\"font-weight: 400\">npm init<\/span><\/p>\n<p><span style=\"font-weight: 400\">You\u2019ll now get a package.json file. The next step is installing your dependencies. It can be done by the following command:<\/span><\/p>\n<p><span style=\"font-weight: 400\">npm install &#8211;save express axios body-parser<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u201cexpress\u201d is the application server that we are using, \u201caxios\u201d is the http client and \u201cbody-parser\u201d will support us in analyzing the response received from every request.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Now, create a new file, titled \u201cindex.js\u201d:<\/span><\/p>\n<p><span style=\"font-weight: 400\">var express = require(&#8216;express&#8217;);<\/span><\/p>\n<p><span style=\"font-weight: 400\">var app = express();<\/span><\/p>\n<p><span style=\"font-weight: 400\">var bodyParser = require(&#8216;body-parser&#8217;);<\/span><\/p>\n<p><span style=\"font-weight: 400\">const axios = require(&#8216;axios&#8217;)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">app.use(bodyParser.json()); \/\/ for parsing application\/json<\/span><\/p>\n<p><span style=\"font-weight: 400\">app.use(bodyParser.urlencoded({<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0extended: true<\/span><\/p>\n<p><span style=\"font-weight: 400\">})); \/\/ for parsing application\/x-www-form-urlencoded<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">\/\/This is the route the API will call in case of a reponse<\/span><\/p>\n<p><span style=\"font-weight: 400\">app.post(&#8216;\/new-message&#8217;, function(req, res) {<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0const {message} = req.body<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\/\/Each message contains &#8220;chat\u201d and a &#8220;text&#8221; object, which has an &#8220;id&#8221; that is the chat id<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\"> \u00a0if (!message || message.text.toLowerCase().indexOf(&#8216;juju&#8217;) &lt;0) {<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\/\/ In case a message is not present, or if our message does not have the wordw juju in it, do nothing and return an empty response<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0return res.end()<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0}<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\/\/ If we&#8217;ve gotten this far, it means that we have received a message containing the wordw &#8220;juju&#8221;.<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\/\/ Respond by hitting the telegram bot API and responding to the approprite chat_id with the wordw &#8220;Abhi&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\/\/ Remember to use your own API toked instead of the one below \u00a0&#8220;https:\/\/api.telegram.org\/bot&lt;your_api_token&gt;\/sendMessage&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0axios.post(&#8216;https:\/\/api.telegram.org\/bot270485614:AAHfiqksKZ8WmR2zSjiQ7_v4TMAKdiHm9T0\/sendMessage&#8217;, {<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0chat_id: message.chat.id,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0text: &#8216;Abhi&#8217;<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0})<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0.then(response =&gt; {<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\u00a0\u00a0\/\/ We get here if the message was successfully posted<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\u00a0\u00a0console.log(&#8216;Message posted&#8217;)<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\u00a0\u00a0res.end(&#8216;ok&#8217;)<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0})<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0.catch(err =&gt; {<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\u00a0\u00a0\/\/ &#8230;and here if it was not<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\u00a0\u00a0console.log(&#8216;Error :&#8217;, err)<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\u00a0\u00a0res.end(&#8216;Error :&#8217; + err)<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0})<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">});<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">\/\/ Finally, start our server<\/span><\/p>\n<p><span style=\"font-weight: 400\">app.listen(3000, function() {<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0console.log(&#8216;Telegram app listening on port 3000!&#8217;);<\/span><\/p>\n<p><span style=\"font-weight: 400\">});<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">By running node index.js, you can run this server on the local machine. If you get the message \u201cTelegram app listening on port 3000!\u201d on your console, then everything has been done right.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Deploying your service<\/b><\/h3>\n<p><span style=\"font-weight: 400\">Again, just like in the case of a server, it\u2019s upon you to deploy your server any way you want, but we prefer to use the service <\/span><b>now<\/b><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First, install <\/span><b>now<\/b><span style=\"font-weight: 400\"> on the system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">npm install -g now<\/span><\/p>\n<p><span style=\"font-weight: 400\">Now, add a start script to the package.json file.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Our file looks like this:<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;name&#8221;: &#8220;telegram-bot&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;version&#8221;: &#8220;1.0.0&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;description&#8221;: &#8220;&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;main&#8221;: &#8220;index.js&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;scripts&#8221;: {<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0&#8220;test&#8221;: &#8220;echo \\&#8221;Error: no test specified\\&#8221; &amp;&amp; exit 1&#8243;<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0},<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;author&#8221;: &#8220;FrankJonas &lt;frankjonas@gmail.com&gt; &#8220;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;license&#8221;: &#8220;ISC&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">Time to add a start script so that you get:<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;name&#8221;: &#8220;telegram-bot&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;version&#8221;: &#8220;1.0.0&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;description&#8221;: &#8220;&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;main&#8221;: &#8220;index.js&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;scripts&#8221;: {<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0&#8220;test&#8221;: &#8220;echo \\&#8221;Error: no test specified\\&#8221; &amp;&amp; exit 1&#8243;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0&#8220;start&#8221; : &#8220;node index.js&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0},<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;author&#8221;: &#8220;Soham Kamani &lt;sohamkamani@gmail.com&gt; (https:\/\/sohamkamani.com)&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0&#8220;license&#8221;: &#8220;ISC&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">Once the script\u2019s been added, run the following command:<\/span><\/p>\n<p><span style=\"font-weight: 400\">now<\/span><\/p>\n<p><span style=\"font-weight: 400\">(Note: run it in the root directory of your project folder i.e. where the package.json file is)<\/span><\/p>\n<p><span style=\"font-weight: 400\">If you are using <\/span><b>now <\/b><span style=\"font-weight: 400\">for the first time, you\u2019ll be presented with some instructions for signing in. Follow them, and you\u2019ll get the following: <\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Deploying ~\/Documents\/experiments\/telegram-bot<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Using Node.js 6.2.1 (default)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">And an address which will be copied to your clipboard.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">The link\/address that you just received, is the one that your server is deployed on. Your API would be available on the link\/new-message (this was pre-defined in index.js).<\/span><\/p>\n<p><span style=\"font-weight: 400\">The final step is to add the Telegram API in the terminal. It\u2019ll assure that the app knows that our bot has to communicate with this address whenever any message is received.<\/span><\/p>\n<p><span style=\"font-weight: 400\">curl -F &#8220;url=https:\/\/telegram-bot-zztjfeqtga.now.sh\/new-message&#8221; \u00a0<\/span><span style=\"font-weight: 400\">https:\/\/api.telegram.org\/bot&lt;your_api_token&gt;\/setWebhook<\/span><\/p>\n<p><span style=\"font-weight: 400\">Time to chat with your bot. According to the system that we have created, every time that you\u2019ll send \u201cjuju\u201d to the bot, you\u2019ll receive the reply \u201cabhi\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Pretty neat, huh? While the tutorial doesn\u2019t focus on advanced optimizations of a bot, it\u2019s a pretty good guide to kickoff your journey into the world of <a href=\"https:\/\/telegram-group.com\">Telegram bots<\/a> (and \u201cbots\u201d in general). You can find a bunch of similar or advanced tutorials on the internet once you are done setting up this neat and simple bot. <\/span><\/p>\n<p><span style=\"font-weight: 400\">That\u2019s all that we have for you today. Do post your queries and experiences with Telegram bots, in the comment section below.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bots have always been the limelight in Telegram, which sets it apart, and years ahead of its competitors. Given the fact that bots, that too developed by third-party developers, have existed on it for such a long time, its bot ecosystem is far more developed than other IM apps such as Messenger. While it\u2019s good [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2627,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","groupUrl":"","channelUrl":"","botUrl":"","location":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2590","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Create A Bot In Telegram - Telegram Group<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create A Bot In Telegram - Telegram Group\" \/>\n<meta property=\"og:description\" content=\"Bots have always been the limelight in Telegram, which sets it apart, and years ahead of its competitors. Given the fact that bots, that too developed by third-party developers, have existed on it for such a long time, its bot ecosystem is far more developed than other IM apps such as Messenger. While it\u2019s good [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/\" \/>\n<meta property=\"og:site_name\" content=\"Telegram Group\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-23T13:33:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1\" \/>\n\t<meta property=\"og:image:height\" content=\"1\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"user\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"user\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/\"},\"author\":{\"name\":\"user\",\"@id\":\"https:\/\/telegram-group.com\/en\/#\/schema\/person\/ce758cc53304e1aa9e9fa1ae1492440f\"},\"headline\":\"How To Create A Bot In Telegram\",\"datePublished\":\"2018-01-23T13:33:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/\"},\"wordCount\":1287,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg\",\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/\",\"url\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/\",\"name\":\"How To Create A Bot In Telegram - Telegram Group\",\"isPartOf\":{\"@id\":\"https:\/\/telegram-group.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg\",\"datePublished\":\"2018-01-23T13:33:28+00:00\",\"author\":{\"@id\":\"https:\/\/telegram-group.com\/en\/#\/schema\/person\/ce758cc53304e1aa9e9fa1ae1492440f\"},\"breadcrumb\":{\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#primaryimage\",\"url\":\"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg\",\"contentUrl\":\"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/telegram-group.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Create A Bot In Telegram\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/telegram-group.com\/en\/#website\",\"url\":\"https:\/\/telegram-group.com\/en\/\",\"name\":\"Telegram Group\",\"description\":\"Telegram Group - 1# largest Telegram aggregator in the world! Telegram groups, bots and channels Links, you can publish your own for free. Update Daily\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/telegram-group.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/telegram-group.com\/en\/#\/schema\/person\/ce758cc53304e1aa9e9fa1ae1492440f\",\"name\":\"user\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/telegram-group.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bbdd942c2fe21a8e1ecadb514eff4634e0388a624dac9dccce17d845e45f0193?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bbdd942c2fe21a8e1ecadb514eff4634e0388a624dac9dccce17d845e45f0193?s=96&d=mm&r=g\",\"caption\":\"user\"},\"url\":\"https:\/\/telegram-group.com\/en\/author\/wb152025\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Create A Bot In Telegram - Telegram Group","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/","og_locale":"en_US","og_type":"article","og_title":"How To Create A Bot In Telegram - Telegram Group","og_description":"Bots have always been the limelight in Telegram, which sets it apart, and years ahead of its competitors. Given the fact that bots, that too developed by third-party developers, have existed on it for such a long time, its bot ecosystem is far more developed than other IM apps such as Messenger. While it\u2019s good [&hellip;]","og_url":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/","og_site_name":"Telegram Group","article_published_time":"2018-01-23T13:33:28+00:00","og_image":[{"url":"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg","width":1,"height":1,"type":"image\/jpeg"}],"author":"user","twitter_card":"summary_large_image","twitter_misc":{"Written by":"user","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#article","isPartOf":{"@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/"},"author":{"name":"user","@id":"https:\/\/telegram-group.com\/en\/#\/schema\/person\/ce758cc53304e1aa9e9fa1ae1492440f"},"headline":"How To Create A Bot In Telegram","datePublished":"2018-01-23T13:33:28+00:00","mainEntityOfPage":{"@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/"},"wordCount":1287,"commentCount":0,"image":{"@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#primaryimage"},"thumbnailUrl":"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg","articleSection":["Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/","url":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/","name":"How To Create A Bot In Telegram - Telegram Group","isPartOf":{"@id":"https:\/\/telegram-group.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#primaryimage"},"image":{"@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#primaryimage"},"thumbnailUrl":"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg","datePublished":"2018-01-23T13:33:28+00:00","author":{"@id":"https:\/\/telegram-group.com\/en\/#\/schema\/person\/ce758cc53304e1aa9e9fa1ae1492440f"},"breadcrumb":{"@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#primaryimage","url":"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg","contentUrl":"https:\/\/telegram-group.com\/en\/wp-content\/uploads\/sites\/2\/2018\/01\/bot-828x430.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/telegram-group.com\/en\/blog\/create-bot-telegram\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/telegram-group.com\/en\/"},{"@type":"ListItem","position":2,"name":"How To Create A Bot In Telegram"}]},{"@type":"WebSite","@id":"https:\/\/telegram-group.com\/en\/#website","url":"https:\/\/telegram-group.com\/en\/","name":"Telegram Group","description":"Telegram Group - 1# largest Telegram aggregator in the world! Telegram groups, bots and channels Links, you can publish your own for free. Update Daily","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/telegram-group.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/telegram-group.com\/en\/#\/schema\/person\/ce758cc53304e1aa9e9fa1ae1492440f","name":"user","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/telegram-group.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bbdd942c2fe21a8e1ecadb514eff4634e0388a624dac9dccce17d845e45f0193?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bbdd942c2fe21a8e1ecadb514eff4634e0388a624dac9dccce17d845e45f0193?s=96&d=mm&r=g","caption":"user"},"url":"https:\/\/telegram-group.com\/en\/author\/wb152025\/"}]}},"_links":{"self":[{"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/posts\/2590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/comments?post=2590"}],"version-history":[{"count":0,"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/posts\/2590\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/media\/2627"}],"wp:attachment":[{"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/media?parent=2590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/categories?post=2590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/telegram-group.com\/en\/wp-json\/wp\/v2\/tags?post=2590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}