Skip to main content

Telegram

Step 1: Get API Token

First, you need to create an account on Telegram. After creating an account, you should contact the BotFather, which is a bot used to create other bots.

To create your bot, use the command /newbot:

telegram_bot

Your bot should have two attributes: a name and a username. After creating the bot, you will receive an API Token.

Step 2: Get Chat ID

To find your chat ID, use RawDataBot.

telegram_chat_id

Step 3: Configure Casdoor Telegram Provider

There are three required fields: App Key, Content, and Chat ID. The relationship between the fields and Telegram is as follows:

NameName in Telegram
Secret keyAPI Token
Chat IDChat ID
Content

telegram_provider