Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make…
About Contact Form 7 + Telegram
This plugin allows you to send Contact Form 7 messages to your Telegram chat. You just need to create a Telegram bot, save the bot token, and add the shortcode [telegram] to your contact form template. You can also add users or groups to your subscriber list and approve or decline requests on the settings page.Frequently asked questions
What does this plugin do?
This plugin allows you to send Contact Form 7 messages to your Telegram chat. It integrates your CF7 forms with a Telegram bot for notifications.
How do I set up the Telegram bot?
You need to create a Telegram Bot and save its Bot-Token on the plugin's settings page or as a constant. Then, add the shortcode [telegram] to your Contact Form 7 template.
How do I add users or groups to receive messages?
To add a user, send the /cf7tg_start command to your bot. To add a group, add your bot to the group and send the /cf7tg_start command there. You will then approve or decline these requests on the plugin's settings page.
Does this plugin support custom markdown?
Yes, you can customize the markdown tag set using the 'wpcf7tg_markdown' filter. This allows for tailored message formatting.
How does the plugin communicate with Telegram?
The plugin uses the Telegram API and makes remote HTTP-requests to Telegram servers. This is how it sends your notifications.
Changelog
1.2.3
- Add read-only WordPress Abilities API integration on WordPress 6.9 and newer.
- Add
cf7-telegram/get-configurationto discover forms, bridges, bots, recipients, and their relationships with permission-aware pagination. - Add
cf7-telegram/diagnose-formto identify missing or broken routes, inactive recipients, and invalid destinations without sending a Telegram message. - Add
cf7-telegram/get-recent-errorsto read sanitized recent log events with time and severity filters and cursor pagination. Reading the shared log additionally requiresmanage_options. - Expose the abilities through PHP, authenticated REST requests, and the optional official WordPress MCP Adapter. Responses exclude bot tokens, raw Telegram chat IDs, and raw log payloads.
- Preserve ordinary form delivery on older WordPress versions without the Abilities API.
These abilities do not change configuration or contact Telegram. Diagnosis describes saved configuration, and the log is incomplete; neither proves successful delivery.
Planned for future releases, outside 1.2.3; scope and release dates remain to be finalized:
cf7-telegram/send-test-message: test Telegram sending through a selected bridge and report the outcome.cf7-telegram/preview-message: preview a form’s Telegram message using synthetic field values, with explicit preview limitations.cf7-telegram/configure-bridge: create or update a bridge using existing forms, bots, and recipients.
1.2.2
- Add a responsive MediaFiles add-on card to the settings page, showing whether the add-on is active, installed but inactive, or not installed.
- Let administrators activate an installed add-on through WordPress’s permission-checked activation link.
1.2.1
- Send Contact Form 7 notifications to selected Telegram forum topics, with separate topic approval, bridge assignment, and delivery; preserve ordinary chat and General topic behavior.
- Show the bot-qualified discovery command and explain how to register a topic and assign it to bridges.
- Track Telegram topic names and let administrators set local recipient names or restore Telegram-provided names.
- Send notifications only to active recipients, and continue with other recipients when a topic delivery fails.
- Improve recipient actions with accessible icon buttons and keep bridge form choices in a top-aligned four-column layout.
1.2.0
- Restore the CF7 Telegram settings submenu in Contact Form 7 6.2 and later, while keeping it available with older Contact Form 7 versions.
1.1.0
- Add fake Telegram browser E2E coverage for form delivery, admin setup, partial delivery failures, and CI evidence collection.
- Rename user-facing Channel terminology to Bridge across the admin UI and guide, with bridge and bot setup guidance.
- Add chat display-name controls so administrators can set custom names and restore Telegram-provided names.
1.0.13
- Make Telegram bot actions POST-first and harden the administration interface against partial loading, pagination, and retry failures.
- Restore the full-page administration background, hide unrelated WordPress notices on the plugin screen, and improve diagnostics without exposing bot tokens or contact details.
- Ignore transient Telegram polling timeouts in the interface and use a 12-second default update polling interval.
- Add automatic 30-day and 10,000-row log retention with configurable limits.
- Verify the release ZIP across supported WordPress, PHP, and Contact Form 7 versions, including install, upgrade, uninstall, and rollback workflows.
- Add reproducible build, Plugin Check, dependency audit, artifact hygiene, browser canary, and manually approved WordPress.org promotion gates.
1.0.12
- Replace the Telegram SDK with a smaller WordPress HTTP integration and safer error handling.
- Validate bot tokens before saving them and preserve existing chat connections when the bot identity is unchanged.
- Make update polling webhook-aware and prevent failed updates from being skipped.
- Load every page of Telegram chats in the administration interface.
- Improve Unicode message chunking, plaintext fallback, multi-recipient delivery, and legacy hook compatibility.
1.0.11
- Make legacy migrations self-healing, retryable, and safe to run repeatedly.
- Preserve Contact Form 7 content while migrating bots, chats, channels, and form connections without duplicates.
- Keep bot tokens defined through PHP constants out of stored plugin data.
- Replace destructive load-time cleanup with conservative repair and recovery controls.
1.0.10
- Add maintenance cleanup for orphan chats and broken relations.
- Fix fatal error on CF7 submission when a channel has chats but no connected bot (#56).
1.0.9
- Remove external update controls.
1.0.8
- Harden Telegram chat sanitization and update polling.
1.0.7
- Prevent duplicate chat subscriptions when bot updates are fetched concurrently.
1.0.6
- Fix truncated bot name copy.
1.0.5
- Race condition in chats loading fixed.
1.0.4
- Minor fixes.
1.0.3
- Fix translation loading issue.
1.0.2
- Manual migration button added.
- Migration process improved.
1.0.1
- Fix react template.
1.0.0
- New UI for managing channels and bot token.
- New plugin name was chosen to comply with new WordPress guidelines.
0.10.0
- Beta testing is available for everyone.
0.9.3
- Preparing for beta testing.
0.9.2
- Loading textdomain fixed – moved to init hook.
- Array undefined key fixed.
0.9.1
- Version never released.
0.9
- Preparing to v1.0 seamless transition.
0.8.7
- API Telegram errors logging added.
0.8.6
- Security issue CVE-2024-9629 got fixed.
0.8.5
- PHP 7.2 compatibility fixed.
0.8.4
- Markdown symbols escaping got added in order to fix an issue.
0.8.3
- Blueprint got added.
0.8.2
- Donation link got changed.
- tested up to WP 6.5
0.8.1
- Actualize add-on sale date.
0.8
- Addons available
0.7.10
- Preparing for attachment sending
- A few fixes
0.7.9
- Markdown for HTML-format issue
0.7.7
- Support WP 5.3 functions for WP before 5.3
0.7
- New interface recipient management
- Groups are supported
- WPCF7_ContactForm::prop( ‘mail’ ) instead WPCF7_ContactForm::$mail
- FIXED Dependence parse_mode by use_html property
0.6.2
- Trim for CHAT_ID field elements added
0.6.1
- Markdown bug fixed
0.6
- Message to telegram now sends on
wpcf7_before_send_mailhook insteadwpcf7_mail_sent. It is more reliable way. wpcf7tg_skip_tgadded.wpcf7tg_markdownadded.WPFC7TG_BOT_TOKENadded.- bugs fixed
0.5
- Markdown added