{"id":18034,"date":"2018-01-29T14:31:50","date_gmt":"2018-01-29T14:31:50","guid":{"rendered":"http:\/\/developer.kore.ai\/v9-0\/?post_type=docs&#038;p=13054"},"modified":"2021-05-05T06:54:41","modified_gmt":"2021-05-05T05:54:41","slug":"adding-the-telegram-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-0\/docs\/bots\/channel-enablement\/adding-the-telegram-channel\/","title":{"rendered":"Adding the Telegram Channel"},"content":{"rendered":"<p>To add Telegram as a channel to your Kore.ai bot, you must create a bot in the Telegram platform. Adding the Telegram channel to your Kore.ai bot allows end-users of your bot to interact with your bot using their <i>Telegram<\/i> account. To add the Telegram channel to your bot, you must:<\/p>\n<ol>\n<li><b>Add BotFather as a Contact on Telegram <\/b>&#8211; To enable the Telegram channel on your bot, log in to Telegram and add <em>BotFather<\/em> as a contact to create a new bot on Telegram.<\/li>\n<li><b>Create a Bot in Telegram <\/b>&#8211; To set up Telegram as a channel, create a bot in the Telegram platform using its default built-in bot called @<em>BotFather<\/em>. Initially, to enable the Telegram channel, you must create and register for a developer account in the Telegram portal.<\/li>\n<li><b>Get Access Token <\/b>&#8211; You are provided an access token as a part of bot creation that you need to reserve for channel configuration.<\/li>\n<li><b>Enable Channel <\/b>&#8211; After entering the configuration data in Bot Builder, enable the channel.<\/li>\n<\/ol>\n<p>To add the Telegram channel, follow the below steps:<\/p>\n<ol>\n<li>In the <b>Bots<\/b> section of the <b>Bot Builder<\/b>, click the bot you want to add the <b>Telegram<\/b> channel to.<\/li>\n<li>On the <b>Channels <\/b>tab, click the<b> Telegram<\/b> icon. The <b>Telegram Channel<\/b> page is displayed.<\/li>\n<li>In a new browser, log in to <b>Telegram<\/b> and search for <em>@BotFather<\/em> from the Search bar as shown below.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/search-bot-father-new.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13060\" src=\"\/wp-content\/uploads\/sites\/21\/search-bot-father-new.png\" alt=\"\" width=\"550\" height=\"240\" \/><\/a><\/li>\n<li>Select <b>@BotFather <\/b>bot and click <b>START<\/b>. If <em>@BotFather<\/em> is already part of your contacts, proceed to the next step directly.<\/li>\n<li>In the chat section, type <em>\/newbot<\/em> in the <strong>Message <\/strong>box and click <strong>Send<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/username-for-bot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13062\" src=\"\/wp-content\/uploads\/sites\/21\/username-for-bot.png\" alt=\"\" width=\"400\" height=\"364\" \/><\/a><\/li>\n<li>On sending the<em> \/newbot<\/em> message, <em>BotFather<\/em> prompts you to enter a <b>Name<\/b> for the new bot to be created. Preferably, give the same name as that of the Kore bot for which the channel is enabled.<\/li>\n<li>After providing the name, <em>BotFather<\/em> prompts for the <b>Username<\/b> for the new bot to be created. Provide any name that ends with the bot. For example, sample_bot or SampleBot.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/username.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13063\" src=\"\/wp-content\/uploads\/sites\/21\/username.png\" alt=\"\" width=\"500\" height=\"304\" \/><\/a><\/li>\n<li>After providing the username, <em>BotFather<\/em> displays a confirmation message and access token. Reserve the access token to enter in the <strong>Configurations<\/strong> tab of the Telegram Channel page.<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/access-token-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13089\" src=\"\/wp-content\/uploads\/sites\/21\/access-token-1.png\" alt=\"\" width=\"500\" height=\"308\" \/><\/a><\/li>\n<li>Go to the <b>Configurations <\/b>tab of the Telegram Channel page, enter the<b> Bot Name<\/b> of your Telegram bot in the <b>Bot Name <\/b>field.<\/li>\n<li>Enter the <b>Access Token<\/b> that was displayed as a part of bot creation.<\/li>\n<li>Select <b>Yes<\/b> and then click <b>Save<\/b> to enable the Telegram Channel for your bot.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Edit_Telegram_Channel\">Edit Telegram Channel<\/span><\/h2>\n<p>To edit the Telegram channel, follow the below steps:<\/p>\n<ol>\n<li>Hover over the channel and click to modify. You can make necessary updates to your channel configurations and save them.<\/li>\n<li>You can also disable or delete the channel information by clicking the <b>Settings<\/b> icon.<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/telegram-edit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13065\" src=\"\/wp-content\/uploads\/sites\/21\/telegram-edit.png\" alt=\"\" width=\"500\" height=\"238\" \/><\/a><\/p>\n<p>Select one of the following commands to modify the channel:<\/p>\n<ul>\n<li><b>Disable\/Enable<\/b> \u2013 Click <b>Disable<\/b> to temporarily disable the use of the Telegram channel for your bot. To enable the use of the Telegram channel, Click <b>Enable.<\/b><\/li>\n<li><b>Delete<\/b> \u2013 Click <b>Delete<\/b>. On the <b>Delete Confirmation<\/b> dialog box,\u00a0click <b>OK<\/b> to permanently delete the bot channel configuration.<\/li>\n<\/ul>\n<div class=\"alert alert-warning\">Warning: This operation is permanent and cannot be undone.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To add Telegram as a channel to your Kore.ai bot, you must create a bot in the Telegram platform. Adding the Telegram channel to your Kore.ai bot allows end-users of your bot to interact with your bot using their Telegram account. To add the Telegram channel to your bot, you must: Add BotFather as a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-18034","post","type-post","status-publish","format-standard","hentry","category-channel-enablement"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/18034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/comments?post=18034"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/18034\/revisions"}],"predecessor-version":[{"id":27334,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/18034\/revisions\/27334"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/media?parent=18034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/categories?post=18034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/tags?post=18034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}