"Lana Login with Telegram" v1.1.0 Documentation by "Lana Codes"
The "Lana Login with Telegram" plugin allows to authorize users in WordPress with Telegram login widget.
The "Lana Login with Telegram" plugin is WordPress 6.2 compatible.
It has been tested on the following browsers:
You have to enable JavaScript in your browser to use this plugin.
Support
If you have any more questions, feel free to contact us at: https://lana.codes/contact-us/
Created: 01/01/2023
By: Lana Codes
E-mail: [email protected]
1. Install WordPress
Download and Install WordPress 4.5 (or higher).
2. Upload Plugin via FTP
Upload "Lana Login with Telegram" plugin folder via FTP into /wp-content/plugins directory.
or
2. Upload Plugin in WordPress Admin
3. Active plugin
Plugin files
"Lana Login with Telegram" plugin: /lana-telegram-login.zip
Lana Login with Telegram settings
Telegram Bot Settings
Bot Token: You can set the "Bot Token" which identifies and manages your
Telegram Bot.
For this you need to create a Telegram Bot.
Bot Username: The plugin sets it automatically using the Bot Token.
Login Widget Settings
Display in Login page: You can set the display status of the login widget in the
Login page.
options: Disabled, Enabled
default: Enabled
Display in Register page: You can set the display status of the login widget in
the Register page.
options: Disabled, Enabled
default: Enabled
Login Widget Design Settings
Button Size: You can set the size of the login button.
options: Large, Medium, Small
default: Large
Button Border Radius Type: You can set the border radius type of the login
button.
options: Default, Custom
default: Custom
Button Border Radius: You can set the border radius size of the login
button.
default: 3
User Photo: You can set display status of the user's photo at the login
button.
default: Show
This is how you can store the Telegram Bot Token as a constant
It is possible to store the bot token in the database in the settings. However, constant storage is safer, so this is the recommended solution.
1. Open wp-config.php
Open the wp-config.php
file with a text editor.
2. Add bot token constant
Add the following code after the following comment:
/* Add any custom values between this line and the "stop editing" line. */
define( 'LANA_TELEGRAM_LOGIN_BOT_TOKEN', '5161171968:oeUTTf0Rq7QoG0BVi6CI083oGDw0bj8Ykhw' );
Note: The constant value should be your own bot token.
This is how you can create Telegram Bot
1. New bot command to the Botfather
You need to type the /newbot
command.
Then you need to enter the name of the bot.
Then you need to enter the username of the bot.
After that, you will receive the Bot Token.
2. Set domain command to the Botfather