website/docs/users-sources/sources/social-logins/telegram/index.md
Configuring Telegram as a source allows users to authenticate within authentik using their Telegram account credentials.
Using Telegram as a source requires that your authentik instance is served from a domain.
To use Telegram as a source, you first need to register a Telegram bot:
@BotFather on Telegram./newbot command to create a new bot. Define a name and username for your new bot (e.g., authentik_bot)./setdomain command.:::note The domain name set in Telegram must exactly match the FQDN of the authentik installation. :::
Now that the bot is configured you can proceed to creating a source in authentik.
Log in to authentik as an administrator and open the authentik Admin interface.
Navigate to Directory > Federation and Social login, click Create, and then configure the following settings:
authentik_bot).Click Save.
:::note For instructions on how to display the new source on the authentik login page, refer to the Add sources to default login page documentation. :::
Property mappings can be used to map Telegram user properties to authentik user properties.
Telegram user data is accessible to Telegram source property mappings as a dictionary named info.
The dictionary contains the following fields:
id - Telegram user IDusername - Username of the user. Might not be present.first_name - First name of the user. Might not be present.last_name - Last name of the user. Might not be present.photo_url - URL of the user's profile photo. Might not be present.