Telegram Contact Form
A minimalist WordPress plugin that sends contact form submissions directly to your Telegram bot.
by Ashvani Kumar · github.com/ashvaniskumar/telegram-contact-form
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ashvaniskumar/telegram-contact-form/archive/refs/heads/main.zipA minimalist contact form that sends submissions directly to your Telegram bot. Simple setup, instant notifications.
Description
Telegram Contact Form is a lightweight WordPress plugin that bridges the gap between your website visitors and your Telegram account. Instead of checking emails, receive contact form submissions instantly on Telegram!
✨ Key Features
- Instant Telegram Notifications - Get contact form submissions sent directly to your Telegram bot
- Easy Setup - Simple 3-step configuration process
- Multiple Form Styles - Choose from Minimal, Modern, or Dark themes
- AJAX Form Submission - Smooth user experience without page reloads
- Fully Responsive - Works perfectly on all devices
- Secure & Lightweight - Built following WordPress coding standards
- Translation Ready - Supports internationalization
🚀 How It Works
- Create a Telegram bot using @BotFather
- Get your bot token and chat ID
- Configure the plugin settings
- Add
[telegram_contact_form]shortcode to any page - Start receiving messages on Telegram!
💡 Use Cases
- Client inquiries for agencies and freelancers
- Support requests for SaaS products
- Lead generation for businesses
- Event registrations
- Booking requests
- General contact forms
🎨 Form Styles
Minimal - Clean and simple design with subtle borders Modern - Gradient header with elevated card design Dark - Dark mode theme with vibrant accents
Use the shortcode with a style parameter:
[telegram_contact_form style="modern"]
🔒 Privacy & Security
- Nonce verification for all form submissions
- Input sanitization and validation
- Secure API communication with Telegram
- No data stored in your database
- GDPR compliant
Installation
Automatic Installation
- Log in to your WordPress admin panel
- Navigate to Plugins > Add New
- Search for "Telegram Contact Form"
- Click "Install Now" and then "Activate"
Manual Installation
- Download the plugin zip file
- Log in to your WordPress admin panel
- Navigate to Plugins > Add New > Upload Plugin
- Choose the downloaded zip file and click "Install Now"
- Activate the plugin
Configuration
- Go to Telegram Form in your WordPress admin menu
- Create a Telegram bot:
- Open Telegram and message @BotFather
- Use the
/newbotcommand - Follow the instructions to create your bot
- Copy the bot token provided
- Get your Chat ID:
- Message @userinfobot on Telegram
- It will reply with your chat ID
- Or use your group/channel chat ID
- Enter your Bot Token and Chat ID in the plugin settings
- Choose your preferred form style
- Click "Save Settings"
- Add the shortcode
[telegram_contact_form]to any page or post
Frequently Asked Questions
How do I create a Telegram bot?
- Open Telegram and search for @BotFather
- Start a chat and send the
/newbotcommand - Follow the instructions to choose a name and username
- BotFather will provide you with a bot token
- Copy this token and paste it in the plugin settings
How do I find my Chat ID?
The easiest way is to:
- Message @userinfobot on Telegram
- It will reply with your user ID (this is your chat ID)
- Copy this ID and paste it in the plugin settings
For group chats:
- Add @RawDataBot to your group
- It will send you the group chat ID
- Use this ID in the plugin settings
Can I use this for group notifications?
Yes! You can send form submissions to:
- Your personal Telegram account (using your user ID)
- A Telegram group (using the group chat ID)
- A Telegram channel (using the channel chat ID)
What data is stored in my database?
None! This plugin doesn't store any form submissions in your WordPress database. All data is sent directly to Telegram, keeping your database clean.
Can I customize the form fields?
The current version includes Name, Email, and Message fields. Custom field support will be added in future updates.
Is this plugin GDPR compliant?
Yes, since no data is stored in your database and messages are sent directly to Telegram, this plugin is GDPR compliant. However, you should still include appropriate privacy notices on your website.
Does it work with caching plugins?
Yes! The plugin uses AJAX for form submission, so it works perfectly with caching plugins.
Can I translate the plugin?
Yes, the plugin is translation-ready. You can use tools like Loco Translate or provide your own translation files.
The form submission fails. What should I check?
- Verify your bot token is correct
- Verify your chat ID is correct
- Make sure you've started a chat with your bot (send
/startto your bot) - Check if your server can connect to api.telegram.org
- Check the browser console for any JavaScript errors
Screenshots
- Admin settings page with minimalist design
- Contact form with "Minimal" style
- Contact form with "Modern" style
- Contact form with "Dark" style
- Mobile responsive design
- Telegram message notification example
Changelog
1.0.0 - 2026-01-20
- Initial release
- Three form style options (Minimal, Modern, Dark)
- AJAX form submission
- Admin settings page
- Shortcode support
- Translation ready
- WordPress 6.7 compatibility
Upgrade Notice
1.0.0
Initial release of Telegram Contact Form plugin.
Support
For support, feature requests, or bug reports, please visit:
- Plugin Support Forum: WordPress.org Support
- Tutorial: Step-by-Step Guide
Credits
- Developed by Ashvani Kumar
- Uses Telegram Bot API for message delivery
- Built following WordPress coding standards
- Open source and community-driven
Privacy Policy
This plugin sends form submission data directly to Telegram via the Telegram Bot API. No form data is stored in your WordPress database. The data sent includes:
- Name (as entered in the form)
- Email address (as entered in the form)
- Message (as entered in the form)
This data is transmitted securely to Telegram's servers. Please review Telegram's privacy policy for information about how they handle data.