Let your users login and register via Telegram, making it easier form them to get started on your website.
Let the users login to your website with their Telegram and make it simple for them to get connected and let them receive their email notifications on Telegram.
Goto Appearance > Widgets and click/drag WP Telegram Login and place it where you want it to be.
Alternatively, you can use the below shortcode.
Inside page or post content:
[wptelegram-login button_style="large" show_user_photo="1" corner_radius="15" show_if_user_is="logged_in"]
Inside the theme templates
<?php if ( function_exists( 'wptelegram_login' ) ) { $args = array( // 'show_user_photo' => false, // 'corner_radius' => 15, // 'button_style' => 'large', // 'show_if_user_is' => 'logged_out', ); wptelegram_login( $args ); } ?>
or
The plugin can also handle the data sent by the Telegram Web App. Simply send window.Telegram.WebApp.initData
query string to this URL:
http://<your-website.com>/?action=wptelegram_login&source=WebAppData
The final URL might look like this:
http://<your-website.com>/?action=wptelegram_login&source=WebAppData&query_id=XXXX&user=XXXX&auth_date=XXXX&hash=XXXX
The plugin will:
Note: You need to use the same bot token for both the plugin and the Web App.
We have a public group on Telegram to help set up the plugin and discuss issues, features, translations, etc. Join @WPTelegramChat
For rules, see the pinned message. No spam, please.
Development takes place in our Github monorepo, and all contributions welcome.
Automatic installation is the easiest way — WordPress will handle the file transfer, and you won’t need to leave your web browser. To do an automatic install of the plugin:
Manual installation method requires downloading the plugin and uploading it to your web server via your favorite FTP application. The official WordPress documentation contains instructions on how to do this here.
Automatic updates should work smoothly, but we still recommend you back up your site.
Sorry, that’s not possible because Telegram allows only a single button per page.
Please follow the instructions given on the WP Telegram Login settings page.
It looks like you missed one that says to send the /setdomain
command to @BotFather.