Integrate NEO Sense with Telegram using Telegram Bots API
If you're using NEO Sense to monitor the health and performance of your website, receiving real-time notifications is essential. While NEO Sense offers various built-in notification channels, integrating it with Telegram using the Telegram Bots API can provide you with a seamless and convenient way to stay updated.
By setting up this integration, you can receive instant alerts and updates directly in your Telegram chat, keeping you informed about any incidents and allowing you to take prompt action.
In this article, we'll walk you through the steps to integrate NEO Sense with Telegram, empowering you with efficient website monitoring and notification capabilities.
Set up the Telegram bot
First, you need a Telegram account. Head over to https://web.telegram.org to create your account. And then, create a new private chat. Search for an account named “BotFather”. After that, do these steps below:
Type /newbot and press Enter to create a new bot.
You will be prompted by BotFather to name your bot. Let’s call it anything you like, such as “NEO Sense Bot”, “Rise and Shine Bot”, or “Open your laptop now! Bot”. The more urgent it sounds, the better! Type your bot name and press Enter.
After that, you will be prompted by BotFather to enter your bot username. You may see an error because your bot username has been taken by someone else. Type your bot username and press Enter again.
If you have selected your bot username, you will receive your bot token. Save the token elsewhere as we are going to need them later.
The next step is to create a group for the Monika notifications. Create a group in Telegram, and invite your bots into the group.
Now that we have our bot API key and set our bot to be a group administrator, all we need to do is to get the group ID. Invite a new bot to the group called @RawDataBot into your group to get the group ID.
After you have successfully invited the Telegram Bot Raw, you will see the group ID. Save the group ID to somewhere else and don’t forget to kick the Telegram Bot Raw from your group. Now that we have the group ID and bot token, it’s time to integrate it with NEO Sense.
Configuring NEO Sense with Telegram Bot
Meet NEO Sense: The web application version of Monika. It simplifies the use of Monika through an easy-to-use dashboard interface. It provides a graphical user interface to create probes, set alerts and notifications, and check the validity of your TLS/SSL certificates.
Using NEO Sense, you can probe your websites and endpoints from multiple locations. Below is the list of available locations currently:
Jakarta, Indonesia
Banten, Indonesia
West Java, Indonesia
Singapore, Singapore
Tokyo, Japan
New Jersey, United States
You can start using NEO Sense by navigating to https://neosense.hyperjump.tech and creating an account. You will receive an email to confirm your account.
After confirming your email, log in to the website, and you will be redirected to the Create Organization page. Fill out the organization details and click Create.
You will be redirected to the Create Project page. Set your first project name, and select your time zone. By default, it will automatically use your current time zone. Click Continue to go to the dashboard.
In the dashboard, click Add New Probe button. Then, fill out the probe details such as probe protocol (HTTP/TCP), name, URL, and description. Then, save the probe by clicking the Add New Probe button.
You will be redirected to the probe configuration page. Click the Notifications tab and you should see that the default notification channel is your registered email. Click the Add Notification channel button to add a new notification channel. Then, select Telegram. Paste your saved Bot Token and Group ID inside the URL input box and click Add.
To confirm the integration, you can send a test message by clicking the “Send Test notification” button.
When there are any incidents/recoveries that happened to your probes, you will be notified through your Telegram channel. Congratulations! You have successfully integrated Telegram with NEO Sense!
Closing
In conclusion, integrating NEO Sense with Telegram using the Telegram Bots API can greatly enhance your website monitoring experience. By leveraging the power of Telegram, you can receive real-time alerts and updates directly in your Telegram chat, ensuring that you're always informed about the status of your probes. This integration provides a seamless and efficient way to stay on top of your website's health and performance, enabling you to take immediate action whenever necessary.
If you have any questions or need help setting up Microsoft Teams as your NEO Sense notification channel, don't hesitate to reach out to the NEO Sense support team for assistance by emailing sosmed(at)hyperjump.tech.
Thanks for reading, and we hope you found this information helpful. Until next time!
Hyperjump is an open-source-first company providing engineering excellence service. We aim to build and commercialize open-source tools to help companies streamline, simplify, and secure the most important aspects of their modern DevOps practices.