[WordPress] 外掛分享: Message Bridge for Contact Form 7 and Telegram

首頁外掛目錄 › Message Bridge for Contact Form 7 and Telegram
WordPress 外掛 Message Bridge for Contact Form 7 and Telegram 的封面圖片
10,000+
安裝啟用
★★★★
4.3/5 分(20 則評價)
54 天前
最後更新
67%
問題解決
WordPress 5.6+ PHP 8.0+ v1.0.4 上架:2018-07-31

內容簡介

這個外掛可以讓你將 Contact Form 7 的訊息傳送到 Telegram 群組或聊天。你只需要完成幾個簡單的步驟:

建立一個 Telegram 機器人,並在 Contact Form 7 - CF7 Telegram 的設定頁面上儲存機器人的 Token 參數,或儲存在 WPFC7TG_BOT_TOKEN 常數中。
在你的聯繫表單樣板中插入短碼 [telegram] 以啟動傳送至 Telegram 的功能。

現在你可以將用戶或群組加入訂閱列表。
想要加入用戶,請向您的機器人發送 /cf7tg_start 命令。
想要加入群組,請把你的機器人加入該群組,並向群組發送 /cf7tg_start 命令。

完成以上步驟後,您將在 Contact Form 7 - CF7 Telegram 的設定頁面中看到訊息請求。您可以選擇批准或拒絕。

鈎子和常數

過濾器 wpcf7tg_skip_tg。
用於跳過傳送訊息的設置。

過濾器 wpcf7tg_markdown。
用於自定義 markdown 標記設置。

常數 WPFC7TG_BOT_TOKEN。
用於在程式文件中定義機器人 Token 的值。

此外掛使用 Telegram API 並且使用遠端 HTTP 請求將通知傳送至 Telegram 伺服器。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Message Bridge for Contact Form 7 and Telegram」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin lets you send Contact Form 7 messages to Telegram chats via a bot. Setup takes just a few steps:

Create a Telegram bot (how to).
Create a bot in the plugin UI.
Paste the bot token into the bot form (PHP constants also available).
Create a channel in the plugin UI — it links your Contact Form 7 forms to Telegram chats.
Add users to the subscriber list by sending the /cf7tg_start command to your bot. To add a group, first add the bot to the group, then send /cf7tg_start in that group.
Approve or decline subscription requests on the Contact Form 7 → CF7 Telegram settings page.
Configure the channel: choose which forms to send messages from.

Hooks and constants
Filter wpcf7tg_skip_tg
Use it to skip sending a Telegram message.
Filter wpcf7tg_markdown
Use it to customize the allowed Markdown tags.
This plugin uses API Telegram and sends remote HTTP requests to Telegram servers to deliver notifications.

文章
Filter
Apply Filters
Mastodon