| 开发者 | aroksds2026 |
|---|---|
| 更新时间 | 2026年3月1日 02:22 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
wpcf7_mail_sent (this WordPress.org edition intentionally avoids any “before send” triggers).{field-name}, {form_id}, {form_title}, {page_url}, {date}, {time}, {all_fields}.sendMessage (no attachments/files).wpcf7_mail_sent) and when you click "Send test message" in wp-admin.
Data sent: chat_id, message text (built from your template and filtered form fields), optional parse_mode, optional message_thread_id, disable_web_page_preview.
Privacy controls: limit what is sent by configuring Allowed/Excluded fields and by editing the message template.
Note: Telegram is a third-party service. Site owners are responsible for the data they send to Telegram. Avoid sending sensitive personal data unless necessary.
/wp-content/plugins/.Yes. This WordPress.org edition triggers only on Contact Form 7 wpcf7_mail_sent (success-only).
Because email delivery can fail in practice (spam filters, SMTP misconfiguration, provider blocks, DMARC policies, throttling). Telegram provides a second, independent notification channel to reduce lost leads.
Create a bot with Telegram’s BotFather and copy the token it gives you. Then paste the token into the plugin settings.
Telegram chat IDs depend on the chat type:
-).
Use a helper method you trust to read the chat ID after you send a message where the bot can see it.It is used for Telegram forum topics. If your group has topics enabled, you can send to a specific topic by setting the Message Thread ID.
Yes. Use Per-form Rules and set the Contact Form 7 Form ID and target Chat ID (and optional Thread ID).
{all_fields} and {field-name} placeholders.No. This plugin sends text messages via Telegram Bot API sendMessage.
Logs are stored in your WordPress database as an option and keep only the last 100 entries. The bot token is never stored in logs.
chat not found → wrong Chat ID or the bot cannot access that chat.bot was blocked by the user → the user blocked the bot.not enough rights to send text messages → bot permissions in the group are insufficient.Bad Request: message is too long → reduce {all_fields} or exclude large fields.Yes:
define('CF7_TG_BOT_TOKEN', '...') in wp-config.php, orCF7_TG_BOT_TOKEN
When provided this way, the token field in Settings is locked.wpcf7_mail_sent).