QNAP has a Notification Center, you can receive some alerts and notification through emails, SMS, Instant Messaging and dedicated push apps. But for Instant Mesagging tools, it only includes Skype. But with simple configuration, you can receive the alerts through Telegram.
Sometimes you would like to receive some alerts and notifications from your QNAP, for instance some emerency firmware updates, errors. Receving email notifications is handy, but sometimes you don’t want to receive a full email just for a single alert. As these alerts are meant to inform, rather than to store for a long time.
You can configure your Telegram to create a Bot that can be used to receive these alerts. Follow the steps below:
- In Telegram, search BotFather and type in
/new
to create a new bot. Follow its instruction and get a token for this bot. - The format of the token should looks something like this:
6123456789:AAAAA-tt-_T3_OOOOOOOOOOOOOOO
. Protect your token, for anyone who has the access can control this bot. - Get your Telegram user id. To get it, search userinfobot (or other bots with the same function), type in
/start
, it would return something like this:
@yourusername
Id: 1234567890
First: [Your first name]
Last: [Your last name]
Lang: en-US
- The
1234567890
is your user id. - In the following link, replace
[token]
and[userid]
with the token and user id you just get:
https://api.telegram.org/bot[token]/sendMessage?chat_id=[userid]&text=@@Text@@&user=@@UserName@@&password=@@Password@@&to=@@PhoneNumber@@
So it should look something like this:
https://api.telegram.org/bot6123456789:AAAAA-tt-_T3_OOOOOOOOOOOOOOO/sendMessage?chat_id=1234567890&text=@@Text@@&user=@@UserName@@&password=@@Password@@&to=@@PhoneNumber@@
- Now its time to move back to QNAP, in Notification Center, under Service Account and Device Pairing, choose SMS and Click Add SMSC Service.
- In the pop up panel, choose SMS service provider to be custom.
- Give your desired Alias, it can be anything.
- Paste the the above link to the URL template text. And click Send a test message (this is the paper flight icon on the right.)
- It will ask you to input a phone number, type in your Telegram phone number.
- Your Telegram should receive a notification. If you can receive that, that means the service is setup. You can configure what types of alerts you would like to receive.
By using this tool, your Telegram is more than a simple instant messaging tool to communicate with other human beings, it becomes an All-in-One messaging tool. By reducing the amount of apps installed in your phone, it is always better - to save power / storage.