{"id":18034,"date":"2018-01-29T14:31:50","date_gmt":"2018-01-29T14:31:50","guid":{"rendered":"http:\/\/developer.kore.ai\/v7-1\/?post_type=docs&#038;p=13054"},"modified":"2021-03-30T13:06:12","modified_gmt":"2021-03-30T12:06:12","slug":"adding-the-telegram-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-1\/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 will need to create a Bot in Telegram platform. Adding the Telegram channel to your Kore.ai Bot allows end users for your bot to interact with your bot using their <i>Telegram<\/i> account.To add the Telegram channel to your Bot, you will need to:<\/p>\n<ol>\n<li><b>Add BotFather as a Contact on Telegram- <\/b>To enable Telegram channel to your bot, you need to login to Telegram and add BotFather as a contact to create a new bot on Telegram.<\/li>\n<li><b>Create a Bot in Telegram<\/b>&#8211; To setup Telegram as a channel, you need to first create a Bot in Telegram platform using it\u2019s default built-in bot called @BotFather. Initially, to enable Telegram channel, you must create and register for a developer account in the Telegram portal.<\/li>\n<li><b>Get Access Token- <\/b>You will be provided an access token as a part of bot creation that you will need to reserve for channel configuration.<\/li>\n<li><b>Enable Channel- <\/b>After entering the configuration data in Bot Builder, you need to enable the channel.<\/li>\n<\/ol>\n<h5><strong>To add the Telegram channel<\/strong><\/h5>\n<ol>\n<li>In the <b>Bots<\/b> section of the <b>Bot Builder<\/b>, click the Bot that you want to add the <b>Telegram<\/b> channel to.<\/li>\n<li>On the <b>Channels tab<\/b>,click the<b> Telegram<\/b> icon. The <b>Telegram Channel<\/b> page gets displayed.<\/li>\n<li>In a new browser, Login to <b>Telegram<\/b> and search for <b>@BotFather<\/b> from the Search option as shown below.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/search-bot-father-new.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13060\" src=\"\/wp-content\/uploads\/sites\/12\/search-bot-father-new.png\" alt=\"\" width=\"550\" height=\"240\" \/><\/a><\/li>\n<li>Select <b>@BotFather bot<\/b> and click on <b>START<\/b> button. If @BotFather is already part of your contacts, you may proceed to the next step directly.<\/li>\n<li>Navigate to the chat section, type <b>\/newbot<\/b> in the message box and send.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/username-for-bot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13062\" src=\"\/wp-content\/uploads\/sites\/12\/username-for-bot.png\" alt=\"\" width=\"400\" height=\"364\" \/><\/a><\/li>\n<li>On sending the <b>\/newbot<\/b> message, BotFather will ask 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 being enabled.<\/li>\n<li>After providing the name, BotFather will ask for the <b>Username<\/b> for the new bot to be created. Provide any name that ends with bot. E.g. sample_bot or SampleBot.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/username.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13063\" src=\"\/wp-content\/uploads\/sites\/12\/username.png\" alt=\"\" width=\"500\" height=\"304\" \/><\/a><\/li>\n<li>After providing the username, BotFather will show a confirmation message and access token.Reserve the access token to enter in the Configurations tab of the Telegram Channel page.<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/access-token-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13089\" src=\"\/wp-content\/uploads\/sites\/12\/access-token-1.png\" alt=\"\" width=\"500\" height=\"308\" \/><\/a><\/li>\n<li>Navigate to the <b>Configurations tab<\/b> of Telegram Channel page, enter the<b> Bot Name<\/b> of your Telegram bot in the <b>Bot Name field<\/b>.<\/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<h1><span class=\"ez-toc-section\" id=\"Editing_the_Telegram_Channel\">Editing the Telegram Channel<\/span><\/h1>\n<p>To edit the Telegram channel, hover your mouse over the channel and click to modify. You can make necessary updates to your channel configurations and save them. You may also disable or delete the channel information by clicking the <b>Settings<\/b> icon.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/telegram-edit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13065\" src=\"\/wp-content\/uploads\/sites\/12\/telegram-edit.png\" alt=\"\" width=\"500\" height=\"238\" \/><\/a><br \/>\nSelect 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 use of the Telegram channel for your Bot.To enable use of the Telegram channel, Click <b>Enable.<\/b><\/li>\n<li><b>Delete<\/b> \u2013 Click <b>Delete<\/b>, and then click <b>OK<\/b> in the <b>Delete Confirmation<\/b> dialog to permanently delete the Bot channel configuration.<\/li>\n<\/ul>\n<div class=\"alert alert-warning\"><b>Warning:<\/b> 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 will need to create a Bot in Telegram platform. Adding the Telegram channel to your Kore.ai Bot allows end users for your bot to interact with your bot using their Telegram account.To add the Telegram channel to your Bot, you will need to: Add&#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\/v7-1\/wp-json\/wp\/v2\/posts\/18034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/comments?post=18034"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/18034\/revisions"}],"predecessor-version":[{"id":20770,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/18034\/revisions\/20770"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/media?parent=18034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/categories?post=18034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/tags?post=18034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}