Let's build Telegram API first without any code and server setup and we need two values to make this.

  • Bot Token key
  • Chat ID

Make a Telegram Bot

To get bot token, you have to make a telegram bot with @botfather tool. Search for thebotfather in your telegram and add this.

Now pass /newbot command to make a new bot, give a name, and username to the bot as following.

After that, you will get your Bot Token Key.

Telegram Bot Key

To get Chat ID, go to your bot channel and send some random message and then replace botaccesstoken with your bot key in this URL.

https://api.telegram.org/bot<bot_access_token>/getUpdates

Open this URL into the browser and it will return a JSON response with Chat ID.

Now you got Bot Token Key & Chat ID.

Setup Telegram API

To make Telegram API without any backend coding and server setup, we are using NoCodeAPI tool. So, sign-up on nocodeapi.com if you have not done yet. Go to Marketplace and activate Telegram API.

Telegram Card

Click on Create Telegram Webhook API and you will see and form to give API name, Bot Token Key, and Chat ID. After filling all these values click on the Create button.

Now your Telegram API is ready and you use to send JSON object, Text, or Link into your Telegram Bot.

I'm using for the following notification:

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

Many services support hooks. You can get direct notification into your telegram.

Setup Netlify Hook

Go to https://app.netlify.com/ and select the site for which you want to set up a hook. Now go to Settings -> Build & Deploy -> Deploy Notification and click on Add Notification. You will see a list of notification methods. Click on the Outgoing webhook.

Netlify Hook

You will see now a form to choose the process.

  • Event to listen for - Deploy started, Deploy successd etc.
  • URL to notify- Put your telegram API there.

And Save. That's all.

Now your Hook setup is ready for Netlify. You can also do with other services as same.

Here you can also see the video to make Telegram API with NoCodeAPI.

Yes, That's all. I hope you didn't find any typos in this blog post. if there is any then just drop me the feedback. Thanks :)