<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ishan Rayeen</title>
    <description>The latest articles on DEV Community by Ishan Rayeen (@ishan0445).</description>
    <link>https://dev.to/ishan0445</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F369937%2F24f13bf2-bb0e-445d-9b6e-04a0491a1ae5.jpeg</url>
      <title>DEV Community: Ishan Rayeen</title>
      <link>https://dev.to/ishan0445</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ishan0445"/>
    <language>en</language>
    <item>
      <title>Deploy Telegram Bot to Heroku For Free | Telegram Bot Development | Part 5</title>
      <dc:creator>Ishan Rayeen</dc:creator>
      <pubDate>Mon, 11 May 2020 21:09:27 +0000</pubDate>
      <link>https://dev.to/ishan0445/deploy-telegram-bot-to-heroku-for-free-telegram-bot-development-part-5-3p29</link>
      <guid>https://dev.to/ishan0445/deploy-telegram-bot-to-heroku-for-free-telegram-bot-development-part-5-3p29</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/9ibGXpxFLQA"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Telegram bot development using &lt;em&gt;node.js&lt;/em&gt; and &lt;em&gt;Telegraf&lt;/em&gt; API.&lt;/p&gt;

&lt;p&gt;Step by step guide: &lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vWogaON8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-28d89282e0daa1e2496205e2f218a44c755b0dd6536bbadf5ed5a44a7ca54716.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/ishan0445"&gt;
        ishan0445
      &lt;/a&gt; / &lt;a href="https://github.com/ishan0445/telegraf-telegram-bot-deploy"&gt;
        telegraf-telegram-bot-deploy
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Telegram bot deploy steps for Telegraf API using micro-bot
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Steps to host your Telegram bot&lt;/h1&gt;
&lt;h2&gt;
Heroku:&lt;/h2&gt;
&lt;ul class="contains-task-list"&gt;
&lt;li class="task-list-item"&gt;
 Create a Telegram bot with Telegraf API.&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Create account on &lt;a href="http://heroku.com/" rel="nofollow"&gt;Heroku&lt;/a&gt;.&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Install &lt;a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up" rel="nofollow"&gt;Heroku CLI&lt;/a&gt;.&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Install and &lt;a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git" rel="nofollow"&gt;setup git&lt;/a&gt;.&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Add &lt;strong&gt;micro-bot&lt;/strong&gt; to the project
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;npm install micro-bot --save&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Remove Telegraf dependency from &lt;strong&gt;package.json&lt;/strong&gt;.&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 set the start command in &lt;strong&gt;package.json&lt;/strong&gt;
&lt;div class="highlight highlight-source-js"&gt;&lt;pre&gt;&lt;span class="pl-k"&gt;...&lt;/span&gt;
&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;main&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span class="pl-k"&gt;:&lt;/span&gt; &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;index.js&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;
&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;scripts&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span class="pl-k"&gt;:&lt;/span&gt; {
&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;start&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span class="pl-k"&gt;:&lt;/span&gt; &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;micro-bot&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;
}
&lt;span class="pl-k"&gt;...&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Make cahnges in the code
&lt;ul class="contains-task-list"&gt;
&lt;li class="task-list-item"&gt;
 Change the telegraf import to
&lt;div class="highlight highlight-source-js"&gt;&lt;pre&gt;&lt;span class="pl-k"&gt;const&lt;/span&gt; { &lt;span class="pl-c1"&gt;Composer&lt;/span&gt; } &lt;span class="pl-k"&gt;=&lt;/span&gt; &lt;span class="pl-c1"&gt;require&lt;/span&gt;(&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;'&lt;/span&gt;micro-bot&lt;span class="pl-pds"&gt;'&lt;/span&gt;&lt;/span&gt;)&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Create bot from &lt;strong&gt;Composer:&lt;/strong&gt;
&lt;div class="highlight highlight-source-js"&gt;&lt;pre&gt;&lt;span class="pl-k"&gt;const&lt;/span&gt; &lt;span class="pl-c1"&gt;bot&lt;/span&gt; &lt;span class="pl-k"&gt;=&lt;/span&gt; &lt;span class="pl-k"&gt;new&lt;/span&gt; &lt;span class="pl-en"&gt;Composer&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Finally remove bot.launch() line instead use:
&lt;div class="highlight highlight-source-js"&gt;&lt;pre&gt;&lt;span class="pl-c1"&gt;module&lt;/span&gt;.&lt;span class="pl-smi"&gt;exports&lt;/span&gt; &lt;span class="pl-k"&gt;=&lt;/span&gt; bot&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Init a new git repo:
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;git init&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 make &lt;strong&gt;.gitignore&lt;/strong&gt; file with following content:
&lt;pre&gt;&lt;code&gt;node_modules
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Login to Heroku:
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;heroku login&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Create a Heroku app:
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;heroku create&lt;/pre&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="task-list-item"&gt;
 Update Heroku config
&lt;div class="highlight highlight-source-shell"&gt;
&lt;pre&gt;heroku config:set --app YourAppId BOT_TOKEN=&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;'&lt;/span&gt;YOUR BOT&lt;/span&gt;&lt;/pre&gt;…&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/ishan0445/telegraf-telegram-bot-deploy"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;em&gt;What you will learn:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Intro to Heroku, git and micro-bot npm package&lt;/li&gt;
&lt;li&gt;Deploying to Heroku&lt;/li&gt;
&lt;li&gt;Testing Bot after deployment&lt;/li&gt;
&lt;li&gt;And a lot more...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Requirements:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Please watch previous parts&lt;/li&gt;
&lt;li&gt;Basic Programming (everything will be taught from basics).&lt;/li&gt;
&lt;li&gt;Telegram Account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Example Bot:&lt;/em&gt;&lt;br&gt;
Search for @covid_19_india_bot on telegram or click here&lt;br&gt;
&lt;a href="https://t.me/covid_19_india_bot"&gt;https://t.me/covid_19_india_bot&lt;/a&gt;&lt;/p&gt;

</description>
      <category>telegram</category>
      <category>node</category>
      <category>tutorial</category>
      <category>bot</category>
    </item>
    <item>
      <title>Sending Media Files | Telegram Bot Development | Part 4</title>
      <dc:creator>Ishan Rayeen</dc:creator>
      <pubDate>Mon, 11 May 2020 21:09:09 +0000</pubDate>
      <link>https://dev.to/ishan0445/sending-media-files-telegram-bot-development-part-4-3pg5</link>
      <guid>https://dev.to/ishan0445/sending-media-files-telegram-bot-development-part-4-3pg5</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/jsZW9Nqy6-o"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Telegram bot development using &lt;em&gt;node.js&lt;/em&gt; and &lt;em&gt;Telegraf&lt;/em&gt; API.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What you will learn:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating a start script.&lt;/li&gt;
&lt;li&gt;Using Nodemon&lt;/li&gt;
&lt;li&gt;Sending Media Files.&lt;/li&gt;
&lt;li&gt;3 methods of sending the media files&lt;/li&gt;
&lt;li&gt;Sending Location.&lt;/li&gt;
&lt;li&gt;And a lot more...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Requirements:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Please watch previous parts&lt;/li&gt;
&lt;li&gt;Basic Programming (everything will be taught from basics).&lt;/li&gt;
&lt;li&gt;Telegram Account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Example Bot:&lt;/em&gt;&lt;br&gt;
Search for @covid_19_india_bot on telegram or click here&lt;br&gt;
&lt;a href="https://t.me/covid_19_india_bot"&gt;https://t.me/covid_19_india_bot&lt;/a&gt;&lt;/p&gt;

</description>
      <category>telegram</category>
      <category>node</category>
      <category>tutorial</category>
      <category>bot</category>
    </item>
    <item>
      <title>Handling Inline Queries | Telegram Bot Development | Part 3</title>
      <dc:creator>Ishan Rayeen</dc:creator>
      <pubDate>Mon, 11 May 2020 21:08:53 +0000</pubDate>
      <link>https://dev.to/ishan0445/handling-inline-queries-telegram-bot-development-part-3-197d</link>
      <guid>https://dev.to/ishan0445/handling-inline-queries-telegram-bot-development-part-3-197d</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/V7s9gLigpxw"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Telegram bot development using &lt;em&gt;node.js&lt;/em&gt; and &lt;em&gt;Telegraf&lt;/em&gt; API.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What you will learn:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inline Query.&lt;/li&gt;
&lt;li&gt;handling inline query using bot.on().&lt;/li&gt;
&lt;li&gt;creating a bot that will search the dev.to API and the OMDB API&lt;/li&gt;
&lt;li&gt;And a lot more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Requirements:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Please watch Part 1 and 2.&lt;/li&gt;
&lt;li&gt;Basic Programming (everything will be taught from basics).&lt;/li&gt;
&lt;li&gt;Telegram Account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Example Bot:&lt;/em&gt;&lt;br&gt;
Search for @covid_19_india_bot on telegram or click here&lt;br&gt;
&lt;a href="https://t.me/covid_19_india_bot"&gt;https://t.me/covid_19_india_bot&lt;/a&gt;&lt;/p&gt;

</description>
      <category>telegram</category>
      <category>node</category>
      <category>tutorial</category>
      <category>bot</category>
    </item>
    <item>
      <title>Inline Keyboards And Menus | Telegram Bot Development | Part 2</title>
      <dc:creator>Ishan Rayeen</dc:creator>
      <pubDate>Mon, 11 May 2020 21:08:37 +0000</pubDate>
      <link>https://dev.to/ishan0445/inline-keyboards-and-menus-telegram-bot-development-part-2-3m0c</link>
      <guid>https://dev.to/ishan0445/inline-keyboards-and-menus-telegram-bot-development-part-2-3m0c</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/uvrhoJdsbmc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Telegram bot development using &lt;em&gt;node.js&lt;/em&gt; and &lt;em&gt;Telegraf&lt;/em&gt; API.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What you will learn:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inline Keyboards and creating menus.&lt;/li&gt;
&lt;li&gt;Callback_query and handling with bot.action() .&lt;/li&gt;
&lt;li&gt;async/await.&lt;/li&gt;
&lt;li&gt;And a lot more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Requirements:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Please watch Part 1.&lt;/li&gt;
&lt;li&gt;Basic Programming (everything will be taught from basics).&lt;/li&gt;
&lt;li&gt;Telegram Account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Example Bot:&lt;/em&gt;&lt;br&gt;
Search for @covid_19_india_bot on telegram or click here&lt;br&gt;
&lt;a href="https://t.me/covid_19_india_bot"&gt;https://t.me/covid_19_india_bot&lt;/a&gt;&lt;br&gt;
Category&lt;/p&gt;

</description>
      <category>telegram</category>
      <category>node</category>
      <category>tutorial</category>
      <category>telegraf</category>
    </item>
    <item>
      <title>Intro to Node.js and Telegraf API | Telegram Bot Development | Part 1</title>
      <dc:creator>Ishan Rayeen</dc:creator>
      <pubDate>Mon, 11 May 2020 21:08:01 +0000</pubDate>
      <link>https://dev.to/ishan0445/intro-to-node-js-and-telegraf-api-telegram-bot-development-part-1-2gca</link>
      <guid>https://dev.to/ishan0445/intro-to-node-js-and-telegraf-api-telegram-bot-development-part-1-2gca</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/elmm7woOJyU"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Telegram bot development using &lt;em&gt;node.js&lt;/em&gt; and &lt;em&gt;Telegraf&lt;/em&gt; API.&lt;/p&gt;

&lt;p&gt;During lockdown I thought of creating a series on telegram bot development and I live streamed it on Youtube.&lt;br&gt;
This is my 1st post on dev.to, feel free to give me constructive comments on improvement. I would love to hear and improve myself.&lt;/p&gt;

&lt;p&gt;Also, do subscribe to my YouTube channel.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;You will learn:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Telegraf library and Telegram Bot API.&lt;/li&gt;
&lt;li&gt;Basic Bot Functions such as commands, middlewares, context shortcuts.&lt;/li&gt;
&lt;li&gt;Learn to call External APIs and return the processed information to users with bots.&lt;/li&gt;
&lt;li&gt;And a lot more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Requirements:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Basic Programming (everything will be taught from basics).&lt;/li&gt;
&lt;li&gt;Telegram Account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Example Bot:&lt;/em&gt;&lt;br&gt;
Search for @covid_19_india_bot on telegram or click here&lt;br&gt;
&lt;a href="https://t.me/covid_19_india_bot"&gt;https://t.me/covid_19_india_bot&lt;/a&gt;&lt;/p&gt;

</description>
      <category>telegram</category>
      <category>node</category>
      <category>bot</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
