
前言介紹
- 這款 WordPress 外掛「Telegram Bot Master」是 2022-04-12 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2022-09-27,距離現在已有 1247 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
webxid |
外掛標籤
bot | mailing | telegram | messaging | Responder |
內容簡介
GitHub專案:https://github.com/bots-master/wp-bots-master
功能列表
– Telegram機器人整合
– 發送訊息給所有Telegram機器人訂閱者
– 發送訊息至Telegram群組聊天中
– 發送訊息至Telegram頻道中
系統需求
需要PHP版本7.2或以上
移除外掛程式
想要完全刪除外掛程式,請按以下步驟執行:
1. 刪除DB資料表wx_bot_users:
SQL查詢:DROP TABLE IF EXISTS wx_bot_users;
移除WP選項:
delete_option(‘telegram_api_token’);
delete_option(‘welcome_message’);
delete_option(‘unknown_message’);
完成!現在資料庫中已不含此外掛程式的資料
如何使用
收集訂閱者
!!! 重要 !!!
如果使用者在機器人程式安裝之前已訂閱了機器人,這個功能將無法使用。
此外掛程式無法從Telegram那邊取得您機器人的舊訂閱者。
因此,以下步驟完成後您才可以傳送訊息給訂閱者
1. 在WP管理員中設定Telegram機器人API Token
2. 使用者訂閱機器人(傳送任何訊息或按任何按鈕)
現在您可以傳送訊息給訂閱者了。
群組聊天 / 頻道
新增群組聊天 / 頻道到聊天機器人
前往Telegram並建立一個公開的群組聊天或頻道(聊天室)
將您的機器人加入該聊天室。它必須能夠張貼訊息。
複製聊天室的username
前往 Bot Master > Channels 並在此處新增username
現在,當您在 Bot Master > Send Message中傳送訊息時,您的機器人會將該訊息發佈到聊天室中
程式碼用法
使用 WebXID\BotsMaster\ChatBot;
使用 WebXID\BotsMaster\ChatBot\BotUser;
BotUser::find(['type_id' => ChatBot\BotUser::TYPE_CHAT]); // 返回所有群組聊天和頻道列表
BotUser::find(['type_id' => ChatBot\BotUser::TYPE_USER]); // 返回所有訂閱者
BotUser::all(); // 返回所有記錄
// -------------------------
$bot_user = BotUser::findOne(['type_id' => ChatBot\BotUser::TYPE_USER]);
if ($bot_user) {
ChatBot::factory($bot_user)
->sendMessage('<b>Hello</b> world!'); // 如果外掛程式正確安裝,將傳送訊息
}
請查看文件https://core.telegram.org/bots/api#html-style以獲取允許的HTML標記
原文外掛簡介
GitHub project: https://github.com/bots-master/wp-bots-master
The features list
– Telegram Bot integration
– Send a message to all Telegram Bot’s Subscribers
– Send a message to Telegram Group Chat
– Post a message in Telegram Channel
Requirements
PHP version 7.2 or later
Uninstall The Plugin
To uninstall the plugin permanently, follow the next steps:
1. Drop the DB table wx_bot_users:
SQL Query: DROP TABLE IF EXISTS wx_bot_users;
Remove WP Options:
delete_option(‘telegram_api_token’);
delete_option(‘welcome_message’);
delete_option(‘unknown_message’);
Done! Now, there is no data of the plugin in DB
How To Use
Collect Subscribers
!!! IMPORTANT !!!
If a user was subscribed to a bot before the bot installing, it will not works.
The plugin does not able to grab your bot’s old subscribers from the Telegram side.
So, you are able to message users after the next steps
1. Set a Telegram Bot API Token in WP Admin
2. A user subscribe to the bot (send any message or click any button)
Now, you are able to message the subscriber.
Group Chat / Channel
Add Group Chat / Channel to The Chatbot
Go to the Telegram and create public a Group Chat or a Channel (Chat)
Add your Bot to the Chat. It has to be able to post a message.
Copy the Chat username
Go to Bot Master > Channels and add the username here
Now, your bot will posts a message to the Chat, you send at Bot Master > Send Message
Code Usage
use WebXID\BotsMaster\ChatBot;
use WebXID\BotsMaster\ChatBot\BotUser;
BotUser::find(['type_id' => ChatBot\BotUser::TYPE_CHAT]); // returns all Group Chats and Channels list
BotUser::find(['type_id' => ChatBot\BotUser::TYPE_USER]); // returns all subscribers
BotUser::all(); // returns all records
// -------------------------
$bot_user = BotUser::findOne(['type_id' => ChatBot\BotUser::TYPE_USER]);
if ($bot_user) {
ChatBot::factory($bot_user)
->sendMessage('Hello world!'); // will send the message, if the plugin installed correctly
}
Please, check the Doc https://core.telegram.org/bots/api#html-style to get allowed HTML tags
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Telegram Bot Master」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Chatbot for WordPress by Collect.chat ⚡️ 》透過這個聊天機器人小工具,您可以免費與您的網站訪客互動。Collect.chat 的這個聊天機器人 WordPress 外掛是將聊天小工具添加到您的網站最簡單的方法。透過...。
Conditional CAPTCHA 》這個外掛有兩種模式 - 基本模式和 Akismet 增強模式。, 基本模式:對於所有未登錄且沒有先前批准的評論者,外掛將提供一個 CAPTCHA。重複的評論者永遠不會看...。PHPEnkoder 》PHPEnkoder 是一個從優秀的 Hivelogic Enkoder 移植到 PHP 而來的 WordPress 外掛。它的功能是以一種使用者可看見但機器人不能的方式顯示文字。, 編碼系統是...。
No-Bot Registration 》厭倦了垃圾機器人、虛假註冊和其他垃圾行為嗎?不想使用笨重且不友好的驗證碼?, No-Bot Registration 將為您提供卓越的保護,而不會使用戶感到困難。可以輕...。
Traffic Monitor 》<html>, <head>, <meta charset="UTF-8">, </head>, <body>, , <h3>WordPress外掛Traffic Monitor簡介:<...。
ChatBot for eCommerce – WoowBot 》什麼是 ChatBot for WooCommerce?, , ChatBot for WooCommerce – WoowBot 是一個簡單的本地化 WordPress 電子商務聊天機器人,無需設置,也不需要任何機器人...。
Telegram Bot & Channel 》這個多用途的外掛能夠幫助你完成各種任務,包括教學、遊玩、搜索、廣播、提醒、連接以及整合你的服務。, 使用這個強大的機器人建造器,你可以:, 🤖 機器人建...。Order Notification for Telegram 》傳統的通知方式之一是透過郵件寄送,但 Telegram 提供了很好的支援。您可以快速且方便地收到重要的訂單通知。, 功能, , 將 WooCommerce 的訂單傳送至 Telegra...。
ChatBot Conversational AI Support 》ChatBot 是一個全方位的平台,可跨渠道創建、部署和追蹤聊天機器人。它允許您使用各種現成的多用途聊天機器人模板或易於使用的視覺構建器自動執行關鍵任務。...。
En Spam 》“En Spam”外掛可以透過使用 cookies 及 javascript 的方式,完全封鎖機器人垃圾留言。因為機器人無法使用 cookies 及 javascript,所以將無法進...。
Device Detector 》Device Detector 是一個全功能的分析報告和管理工具,可檢測訪問您的 WordPress 網站的所有設備。, , 🎁 在免費的虛擬站點上測試此外掛: 一鍵測試!, , 對於...。
Cloak Front End Email 》這個外掛非常容易使用:只需安裝它,使用短碼 [email],它就會自動運作。如果您需要多個電子郵件地址,可以前往設置頁面創建自定義電子郵件地址,並使用相應...。
SpiderDisplay 》這款外掛程式用於記錄搜尋引擎的抓取時間及抓取的連結。目前支援的搜尋引擎有:百度、谷歌、360、神馬、有道、搜狗、必應、Alexa、Yandex、WordPress,以及其...。
Block Archive.org via WordPress robots.txt 》此外掛可在 WordPress 自動建立虛擬 robots.txt 檔案(若實體檔案不存在於伺服器上)中添加行,以封鎖 Archive.org 機器人。, , 請明確了解此外掛功能:若啟...。
Simple Honeypot for Contact Form 7 》總結:這是一個用於 Contact Form 7 的簡單吸引陷阱實作,以防止垃圾郵件,並具有時間追蹤功能和隱藏的吸引陷阱欄位,增強安全性。必須安裝 Contact Form 7 ...。
