
內容簡介
讓使用者使用 Telegram 登入您的網站,讓他們更容易連線,並讓他們透過 Telegram 接收電子郵件通知。
優質支援
加入聊天室
我們在 Telegram 上有一個公開的群組,以協助設定外掛、討論問題、功能、翻譯等等。加入@WPTelegramChat
請參閱固定訊息以了解規則,請勿發送垃圾郵件。
為什麼要使用 Telegram 登入?
移除煩瑣的註冊表單
不需要 captcha
無需進行電子郵件驗證
不用擔心「忘記密碼?」的問題
提供足夠的使用者資訊
功能
安全、可靠又簡單的登入方式
依賴 SHA-256 雜湊資料串
由 Telegram 驗證的使用者資料是值得信賴的
可用於防止垃圾註冊
對管理者來說,容易安裝和設定
可用於讓新使用者註冊
現有使用者可以連結他們的 Telegram 帳戶
可以將使用者賦予任何所需的角色
登入按鈕可以顯示在任何地方
可以使用自訂程式碼進行擴充
小工具資訊
前往「外觀」>「小工具」,並點擊/拖曳「WP Telegram Login」,將其放置到您想要的位置上。
或者,您可以使用下列短碼。
在頁面或文章內容中:
[wptelegram-login button_style="large" show_user_photo="1" corner_radius="15" show_if_user_is="logged_in"]
在佈景主題中:
<?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 );
}
?>
Telegram Web App 資料
此外掛還可以處理由Telegram 網頁應用程式傳送的資料。只需將window.Telegram.WebApp.initData查詢字串發送到此 URL:
http://<your-website.com>/?action=wptelegram_login&source=WebAppData
最終的 URL 可能會像這樣:
http://<your-website.com>/?action=wptelegram_login&source=WebAppData&query_id=XXXX&user=XXXX&auth_date=XXXX&hash=XXXX
此外掛會:
為您驗證資料
如果使用者不存在,則會為使用者創建一個帳號
以您的 Web App 上下文的使用者身分登入網站
注意:您需要將相同的機器人令牌用於此外掛和網頁應用程式。
聯繫我們
網站:wptelegram.com
Telegram:@WPTelegram
Facebook:@WPTelegram
Twitter:@WPTelegram
貢獻
開發活動發生於Github,歡迎所有貢獻。
翻譯
非常感謝譯者出色的工作!
外掛標籤
開發者團隊
② 後台搜尋「WP Telegram Login & Register」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
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.
Why Telegram Login?
Removes the lengthy registration forms
Removes the need for captchas
Removes the need for email verification
No “forgot password?” stuff
Provides enough information about the user
Features
Safe, secure and easy login method
Relies upon SHA-256 hashed data strings
User data is trustworthy – verified by Telegram
Can be used to prevent spam registrations
Easy to install and set up for the admin
Can be used to let new users sign up
Existing users can connect their Telegram account
Users can be given any desired role on the website
Login button can be displayed anywhere
Can be extended with custom code
Widget Info
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
false,
// 'corner_radius' => 15,
// 'button_style' => 'large',
// 'show_if_user_is' => 'logged_out',
);
wptelegram_login( $args );
}
?>
or
Telegram Web App data
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://
The final URL might look like this:
http://
The plugin will:
Validate the data for you
Create a user account for the user if it doesn’t exist
Login the user to the website in the context of your Web App.
Note: You need to use the same bot token for both the plugin and the Web App.
Excellent Support
Join the Chat
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.
Get in touch
Website wpsocio.com
Telegram @WPTelegram
Facebook @WPTelegram
Twitter @WPTelegram
Contribution
Development takes place in our Github monorepo, and all contributions welcome.
