Skip to main content

Telegram notification

1. Get bot API token

Create a Telegram account, then open @BotFather and send /newbot. Set the bot name and username; BotFather returns an API Token.

telegram_bot

2. Get chat ID

Use @RawDataBot in Telegram: start a chat and it will show your Chat ID.

telegram_chat_id

3. Configure the provider in Casdoor

Create a Notification provider, set Type to Telegram, and fill in:

Casdoor fieldValue
Secret keyAPI Token
Chat IDChat ID
ContentMessage template (optional)

telegram_provider