DEV Community

Cover image for Build telegram bot without code and receive notifications
Qasim Ali for NoCodeAPI

Posted on

Build telegram bot without code and receive notifications

You must have used telegram to chat with your friends, family or colleagues. But there is more to this awesome app. You can build your own ROBOTS with telegram. For example, you can keep yourself informed about upcoming movie launch, the blockbuster album release, your favorite show's next episode release alert, fetch summary of your workouts each night before bed or get an alert about your next phone's price drop. All of it at one place — inside your telegram app.

So.. why wait — let's build one!

Bonus Point:— Telegram bots are faster, easier, simpler than slack bots. I personally use telegram bots to monitor my website’s downtime.

Step 1: Get Bot Token

image

  • Search @botfather on telegram.
  • Click on addthis at the bottom of telegram channel.
  • Send /newbot command to make a new bot.
  • Give this bot a name.
  • Give this bot a username.

The bot will reply to you with a Bot Token Key. Save it because you will need it in Step 3.

Step 2: Start your Bot

image

  • Find your bot window in @botfather token message. It looks like this:— t.me/your_username. And tap on it.
  • It will take you to your bot chat window.
  • Click on /start at the bottom of your bot chat window.

Step 3 : Make your app on NoCodeAPI

image

  • Click on "Make Telegram Webhook API"
  • Give your webhook a "name"
  • Enter the "bot access token", @botfather gave you in telegram
  • Click "Refresh DropDown"
  • Select your "Chat ID"
  • Click "Create"

Step 4: Test if it is working

image

  • Your webhook is listed in your nocodeapi dashboard.
  • Click on "open playground"
  • You can see the URLs to send either a text message or an object message to your bot
  • Send a test message and it should show up in your telegram app.

Conclusion 😀

If it worked. It is good news. But if you are facing any issue — contact us here on telegram. We will get you boarded.

I am using telegram webhooks for:—

  • Netlify Build Notification
  • New Meeting booked on Calendly
  • New user on Stripe
  • Website Down/UP with Uptime Robot

Most services support hooks. You can use telegram app to receive notifications on your cell phone.

I hope it helped you in building your API. If you found it helpful, give us a follow on our Twitter channel at @nocodeapi. Thank you for reading. 👋

Top comments (6)

Collapse
 
fajarsiddiq profile image
Fajar Siddiq

great write up Qasim!

Collapse
 
qasim2020 profile image
Qasim Ali

Thank u fajar. Nocodeapi to the moon in’sha’Allah 💪

Collapse
 
fajarsiddiq profile image
Fajar Siddiq

Insya'allah! 😃

Collapse
 
eelcoverbrugge profile image
Eelco Verbrugge

I do not receive a Chat ID.. "No Data" after clicking "Refresh Dropdown"

Collapse
 
mddanishyusuf profile image
Mohd Danish

Hey, check out this video if you need to see in action youtube.com/watch?v=c-c1-0rk5_I

Collapse
 
eelcoverbrugge profile image
Eelco Verbrugge

Thanks! Send a message to the bot and now it works.