Telegram Login Plugin

Introduction

The Telegram login widget is a simple way to authorize users on your website using Telegram.

Prerequisites

To use the login plugin, you'll need a Telegram bot.
It is strongly recommended that the profile picture of the bot you use for authorization corresponds with your websiteโ€˜s logo, and that the botโ€™s name reflects that connection.

How to create a Bot:

  1. Find BotFather in the Telegram
Image without caption
  1. Click /newbot to create it
  1. Give it a name
Image without caption
  1. Give a username
Image without caption
  1. Call the action /setdomain in order to link your domain to it.
Image without caption

Element proprieties

The plugin comes with a visual element - Telegram Login.
Image without caption

How to setup

  • Install the plugin in your application in the Plugins tab
Image without caption
  • Place the visual element Telegram Login on the page
  • Insert the Username of your Bot in the "User name of the Bot" field (that was created in step 3) in the plugin element.
  • Choose the appropriate item proprieties.
  • You will find the registration button on your page
Image without caption
  • Users will see this message when they log into your website:โ€‹
Image without caption
  • You must insert your phone number (By which you registered your Telegram account), then press โ€œConfirmโ€ in your Telegram application on the phone. After that click โ€œAcceptโ€.
  • You can get user info only after running โ€œGet user's infoโ€ action. User's information (Last name, First name, User ID, and photo).

Plugin Actions

Image without caption
Get User's Info - action used to retrieve user information.

Plugin States

Image without caption
First_name Last_name userID photo_url
The exposed states are type text which can used to retrieve user information.

Demo to preview the settings