Send notifications to Telegram
This guide explains how to send the notifications of Casdoor to a Telegram chat through a bot.
Learning outcomes
- Create a Telegram bot and find the chat ID.
- Add Telegram as a notification provider in Casdoor.
What you need
- A Telegram account
- Administrator access to the Casdoor admin console
Create a bot
-
Open @BotFather and send
/newbot. -
Enter the name and the username of the bot. BotFather replies with the API token.

Find the chat ID
Start a chat with @RawDataBot. It shows your chat ID.

Add the provider in Casdoor
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
Notificationand Type toTelegram. -
Fill in the fields:
Casdoor field Value Secret key API Token Chat ID ID de chat Content Message template (optional) 
-
Click Send Testing Notification, and save the provider.