RdpGuard and Telegram Integration: A Comprehensive Guide
RdpGuard
Intrusion prevention system for your Windows Server
 
Follow:
Share:

RdpGuard Custom Actions and Telegram Integration

Telegram Integration Overview

Telegram is a popular messaging app that allows you to send messages, photos, videos, and files to your contacts. You can also create Telegram Bots and Channels to send messages to multiple users.

RdpGuard can send notifications to your Telegram chat or channel using the Telegram Bot API.

To send messages to a Telegram chat or channel, you need to create a new Telegram Bot and obtain the API Token. You also need to know the Chat ID of the chat or the Channel ID of the channel you want to send messages to.

To help you get started, we have prepared a step-by-step guide on how to create a new Telegram Bot, obtain the API Token, and get the Chat ID and Channel ID.

You can use the obtained API Token, Chat ID, and Channel ID to configure the Send Telegram message action in RdpGuard.

How to create Telegram Bot

To create a new Telegram Bot, you need to talk to the BotFather and follow a few simple steps.

  1. Open the Telegram app and search for @BotFather. Be aware of fake accounts!

    How to search for BotFather

    Search for BotFather. Be aware of fake accounts!

  2. Start a chat with the BotFather by clicking the Start button.

    How to start a chat with BotFather

    Start a chat with BotFather.

  3. Send the /newbot command to create a new bot.
  4. Choose a name for your bot.
  5. Choose a username for your bot. It must end in bot and be unique.
  6. Copy the API Token provided by the BotFather.

How to create a new Telegram Bot

Choose a name and username for your bot. Copy the API Token.

Be sure to keep your API Token secure and do not share it with anyone.

Now that you have successfully created a new Telegram Bot and obtained the API Token, you can use it to interact with your bot using the Telegram Bot API

Sending messages to a Telegram chat

In order to send messages to a Telegram chat using the Telegram Bot API, you need to know the Chat ID of the chat you want to send messages to.

RdpGuard can help you get the Chat ID of your Telegram chat.

To obtain the Chat ID, click the Refresh button located in the Chat field within the Send Telegram message action settings:

How to get Telegram Chat ID

Click the Refresh button to get the Chat ID.

If you see the No chats found error message, it means that the Telegram Bot has not received any messages within the last 24 hours.

To fix this, you need to start a chat with your bot and send any message to it.

How to start a chat with Telegram Bot

Start a chat with your Telegram Bot and send any message to it.

After you have sent a message to your bot, click the Refresh button again to get the Chat ID. Please note: it may take a few minutes for the chat to appear in the list.

Telegram Chat ID received

Chat ID received. Click Save changes to save the Custom Action settings.

Click Save changes to save the Custom Action settings.

Sending messages to a Telegram channel

To deliver messages to multiple users you can use Telegram channel.

In order to send messages to a Telegram channel you need to know the Channel ID of the channel you want to send messages to.

RdpGuard can help you get the Channel ID of your Telegram channel.

To obtain the Channel ID, click the Refresh button located in the Chat field within the Send Telegram message action settings:

How to get Telegram Channel ID

Click the Refresh button to get the Channel ID.

If you see the No chats found error message, it means that the Telegram Bot is not an administrator of any channel or the channel has not received any messages within the last 24 hours.

To fix this, you need to add your bot to a channel Administrators and send a message to the channel.

To create a new Telegram channel:

  1. Open the Telegram app, Chats tab, and click the New Message button.

    How to create a new Telegram Channel

    Click the New Message button on the Chats tab.

  2. Click the New Channel button.

    How to create a new Telegram Channel

    Click the New Channel button.

    How to create a new Telegram Channel

    Telegram Channel introduction. Click the Create Channel.

  3. Choose a name for your channel and click Next.

    How to create a new Telegram Channel

    Choose a name for your channel and click the Create button.

  4. Choose the privacy settings for your channel and click Next.

    How to create a new Telegram Channel

    Choose the privacy settings for your channel and click the Save button.

To add your bot to the channel Administrators

  1. Open the Telegram app, Chats tab, and open the channel you have created.

    How to add a bot to a Telegram Channel

    Open the channel you have created.

  2. Click the channel name to open the channel settings.

    How to add a bot to a Telegram Channel

    Click the channel name to open the channel settings.

  3. Click the Administrators button.

    How to add a bot to a Telegram Channel

    Click the Administrators button.

  4. Click the Add Admin button.

    How to add a bot to a Telegram Channel

    Click the Add Admin button.

  5. Search for your bot and click on it.

    How to add a bot to a Telegram Channel

    Search for your bot and click on it.

  6. Choose the rights for your bot and click Save.

    How to add a bot to a Telegram Channel

    Choose the rights for your bot and click the Save button.

Now that you have added your bot to the channel Administrators, send any message to the channel.

After you have added your bot to the channel Administrators and sent a message to the channel, click the Refresh button again to get the Channel ID. Please note: it may take a few minutes for the channel to appear in the list.

Telegram Channel ID received

Channel ID received. Click Save changes to save the Custom Action settings.

Click Save changes to save the Custom Action settings.

RdpGuard 9.7.9 Free Trial

RdpGuard protects:

Social Connection
RdpGuard Logo
 
People like RdpGuard!
Our customers say

"This sotware is really great. It's a relief. Because my server is constantly under attack. Thanks RdpGuard" - Joaquim De Sousa Marques

"Nice product. I used to implement something similiar in a low-tech and cumbersome manner via a script called TSBlock (not mine). This makes it much easier and is well worth the pricetag for SMB's." - J. Johnson

"Absolutely amazed at your product. We are a church in the North Dallas area, and I discovered this morning multiple failed logon attempts via our Remote Access Server. A friend suggested your product, so I immediately downloaded the trial. It had a list of about five blocked IP addresses in minutes, and that was enough to lead me to push the BUY button. Over the past 10-15 minutes the list is now about thirty with at least a third being international attempts to break into our system. Thanks for a great product. You may have just saved us much grief." - John Hallford

"Love the software. RDP on our Windows servers is just ridiculous. We would block it in the router but we have lots of old-time customers that would have issues." - Scott Hirsch

"Love the software! Makes it easier than tailoring VB Scripts!!" - Nick Brennan

"It's a great product - really stopping those RDP attackers :-)" - Dave, UK

"First of all: Your application is very (!!!) useful and I like it very much securing my 2012 R2 server. RdpGuard is the best solution, I found on the market and after 10 minutes of testing it I ordered the fully-featured version. :-)" - Carsten Baltes

Our Other Products
FastGlacier
Windows Client for Amazon Glacier - new low-cost storage for data archiving and backup.
Copyright © 2012-2024 NetSDK Software. All rights reserved.  Terms of Use.  Privacy Policy.