Description
CF7 Telegram Alert connects your Contact Form 7 forms to Telegram so you can receive instant alerts when users submit a form. It uses your existing CF7 mail template (the “Message body”) and can also forward uploaded files as Telegram documents.
Key features:
– Sends CF7 submission content to Telegram when a form is successfully submitted
– Uses your CF7 mail body template so you control formatting/content
– Sends file uploads as Telegram documents (supports multiple files)
– Choose one or more destinations: private chats, groups, or channels
– Simple settings page under Contact Form 7 Telegram alert
Requirements:
– Contact Form 7 plugin (mandatory)
– A Telegram Bot (created via @BotFather) and its Bot Token
Notes on formatting:
– HTML from the CF7 mail body is stripped before sending. Telegram message is sent in Markdown mode; avoid HTML-only formatting.
External services
This plugin connects to the Telegram Bot API in order to send Contact Form 7 form submissions to a specified Telegram chat or group.
When a user submits a form, the plugin sends the following data to Telegram:
– Form field values submitted by the user (e.g., name, email, message, or any other fields configured in the form).
– Files uploaded via the form, if the form contains file upload fields.
This data is only sent when a form is submitted, and only to the Telegram Bot API endpoint that you configure by providing your bot token and chat/group ID in the plugin settings.
The service is provided by Telegram Messenger Inc.
– Terms of Service: https://telegram.org/tos
– Privacy Policy: https://telegram.org/privacy
Installation
- Install and activate Contact Form 7.
- Upload this plugin to /wp-content/plugins/ or install the ZIP via Plugins Add New Upload Plugin, then activate it.
- Go to Contact Form 7 Telegram alert.
- Create a bot via Telegram @BotFather and copy the Bot Token.
- Paste the Bot Token into the plugin settings and Save.
- In Telegram, start a chat with your bot, or add it to a group/channel and send at least one message there.
- Return to the plugin settings and refresh the page; available chats/groups/channels should appear. Select one or more destinations and Save.
- Submit a CF7 form to test. You should receive a Telegram message (and any uploaded files as documents).
FAQ
-
Do I need Contact Form 7?
-
Yes. This plugin hooks into Contact Form 7’s submission process.
-
How are chats/groups/channels discovered?
-
After you save a valid Bot Token and then send a message to your bot (in private or in a group/channel the bot has access to), the plugin uses Telegram’s getUpdates API to list destinations you can choose from in settings.
-
Can I send to a channel?
-
Yes. Add the bot to the channel and grant permission to post. Send at least one message in the channel, then refresh the plugin settings and select the channel.
-
Are attachments supported?
-
Yes. CF7 file upload fields are sent as Telegram documents to the selected destination(s).
-
My message formatting looks plain. Why?
-
The plugin strips HTML from the CF7 mail body and sends text in Markdown mode. Use simple text or Markdown-friendly content in your CF7 mail template.
-
I don’t see my chat/group/channel in the list.
-
Ensure you have: (1) saved a valid Bot Token, (2) started a conversation with the bot or added it to the destination, and (3) sent at least one message there. Then refresh the settings page.
-
Does the plugin store my Bot Token?
-
Yes, the Bot Token you enter is stored in WordPress options so the plugin can call Telegram’s API. Keep it secret and treat it like a password.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“PiWebSolution Alerts for Contact Form 7 in Telegram” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “PiWebSolution Alerts for Contact Form 7 in Telegram” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release: Send CF7 submission content and attachments to Telegram; select multiple destinations.


