Skip to content

Saliizan/WPTelegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Contact Form with Telegram Integration

A lightweight WordPress plugin that creates a beautiful contact form and sends submissions directly to your Telegram bot. Features a modern design, file upload capability, and seamless Telegram integration.

یک افزونه سبک وردپرس که یک فرم تماس زیبا ایجاد می‌کند و ارسال‌های فرم را مستقیماً به ربات تلگرام شما می‌فرستد. دارای طراحی مدرن، قابلیت آپلود فایل و یکپارچه‌سازی بی‌درنگ با تلگرام.

Features | ویژگی‌ها

  • 🎨 Modern, responsive design
  • 📱 Mobile-friendly interface
  • 📎 File upload support
  • 🔔 Instant Telegram notifications
  • ✨ Gutenberg compatible
  • 🔒 Secure form processing
  • 🎯 Required & optional fields
  • 💅 Customizable styling
  • 🎨 طراحی مدرن و واکنش‌گرا
  • 📱 رابط کاربری سازگار با موبایل
  • 📎 پشتیبانی از آپلود فایل
  • 🔔 اعلان‌های فوری تلگرام
  • ✨ سازگار با ویرایشگر گوتنبرگ
  • 🔒 پردازش امن فرم
  • 🎯 فیلدهای اجباری و اختیاری
  • 💅 استایل قابل سفارشی‌سازی

Installation | نصب

English Instructions

  1. Download the plugin ZIP file or clone this repository to your WordPress plugins directory:
cd wp-content/plugins
git clone https://github.com/yourusername/wp-telegram-contact-form.git
  1. Activate the plugin through the WordPress admin panel.

  2. Get your Telegram bot token from @BotFather.

  3. Get your chat ID by messaging @userinfobot on Telegram.

  4. Open the plugin file and replace the following:

$bot_token = 'YOUR_BOT_TOKEN';
$chat_id = 'YOUR_CHAT_ID';
  1. Add the contact form to any page or post using the shortcode:
[telegram_contact_form]

راهنمای نصب فارسی

  1. فایل ZIP افزونه را دانلود کنید یا این مخزن را در پوشه افزونه‌های وردپرس خود کلون کنید:
cd wp-content/plugins
git clone https://github.com/yourusername/wp-telegram-contact-form.git
  1. افزونه را از طریق پنل مدیریت وردپرس فعال کنید.

  2. توکن ربات تلگرام خود را از @BotFather دریافت کنید.

  3. شناسه چت خود را با ارسال پیام به @userinfobot در تلگرام دریافت کنید.

  4. فایل افزونه را باز کرده و موارد زیر را جایگزین کنید:

$bot_token = 'YOUR_BOT_TOKEN';
$chat_id = 'YOUR_CHAT_ID';
  1. فرم تماس را با استفاده از شورت‌کد زیر به هر صفحه یا نوشته اضافه کنید:
[telegram_contact_form]

Customization | سفارشی‌سازی

English

You can customize the form's appearance by modifying the CSS in the telegram_form_styles() function. The default colors are:

  • Text color: #79F3B1
  • Background color: #4433A6

فارسی

می‌توانید ظاهر فرم را با تغییر CSS در تابع telegram_form_styles() سفارشی کنید. رنگ‌های پیش‌فرض عبارتند از:

  • رنگ متن: #79F3B1
  • رنگ پس‌زمینه: #4433A6

License | مجوز

English

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details. You are free to use, modify, and distribute this plugin as long as you keep it open source and provide appropriate attribution.

فارسی

این پروژه تحت مجوز عمومی گنو نسخه 3.0 منتشر شده است - برای جزئیات بیشتر فایل LICENSE را ببینید. شما آزاد هستید که از این افزونه استفاده کنید، آن را تغییر دهید و توزیع کنید، به شرطی که آن را متن‌باز نگه دارید و منبع اصلی را ذکر کنید.

Contributing | مشارکت

English

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

فارسی

از مشارکت‌ها استقبال می‌شود! لطفاً برای ارسال تغییرات خود از Pull Request استفاده کنید. برای تغییرات عمده، لطفاً ابتدا یک issue باز کنید تا در مورد تغییرات مورد نظر بحث کنیم.

About

A plugin to receive emails and contact us messages for WordPress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages