A simple contact form website that connects to a Telegram bot for message forwarding and automated responses.
- Install PHP (version 7.4+ recommended).
- Install a web server like Apache or use built-in PHP development server.
- Set up Telegram Bot API Token.
- Ensure cURL and GD extensions are enabled in PHP.
-
Install PHP & Apache
sudo apt update sudo apt install apache2 php libapache2-mod-php php-curl php-gd
-
Clone the Repository
git clone https://github.com/mizegerd-tech/Contact-us-website-bot.git cd contact-bot-site
-
Configure the Bot
Openbot.php
and update the Telegram Bot Token and Chat ID:$botToken = "YOUR_BOT_TOKEN"; $chatId = "YOUR_CHAT_ID";
-
Run PHP Server
php -S localhost:8000
-
Access the Website
Openhttp://localhost:8000/index.php
in your browser.
- 📩 Contact Form Submission: Users can send messages via the form.
- 🤖 Telegram Bot Integration: Messages are forwarded to a Telegram bot.
- 🔐 Captcha Verification: Protects against spam with mathematical captchas.
- 🌐 Easy Deployment: Simple to set up and deploy.
- 🚀 Fast & Secure: Lightweight with security measures in place.
سایت ارتباط با ما و متصل به ربات
یک وبسایت ساده برای ارسال پیام از طریق فرم تماس که به یک ربات تلگرام متصل است و پیامها را به صورت خودکار ارسال میکند.
- نصب PHP (ترجیحاً نسخه 7.4+).
- نصب Apache یا استفاده از سرور داخلی PHP.
- تنظیم توکن ربات تلگرام.
- فعالسازی افزونههای cURL و GD در PHP.
-
نصب PHP و Apache
sudo apt update sudo apt install apache2 php libapache2-mod-php php-curl php-gd
-
کلون کردن ریپازیتوری
git clone https://github.com/mizegerd-tech/Contact-us-website-bot.git cd contact-bot-site
-
پیکربندی ربات
فایلbot.php
را باز کرده و توکن ربات تلگرام و Chat ID را بهروز کنید:$botToken = "توکن_ربات_شما"; $chatId = "شناسه_چت_شما";
-
اجرای سرور PHP
php -S localhost:8000
-
دسترسی به سایت
مرورگر خود را باز کنید و بهhttp://localhost:8000/index.php
بروید.
- 📩 ارسال پیام از فرم تماس: کاربران میتوانند از طریق فرم پیام ارسال کنند.
- 🤖 اتصال به ربات تلگرام: پیامها به ربات تلگرام ارسال میشوند.
- 🔐 تأیید امنیتی Captcha: جلوگیری از اسپم با کپچای ریاضی.
- 🌐 راهاندازی آسان: ساده و سریع برای اجرا و استفاده.
- 🚀 سبک و امن: عملکرد بهینه با اقدامات امنیتی مناسب.
-
Fork the repository.
ریپازیتوری را فورک کنید. -
Create a new branch:
git checkout -b feature-branch
.
یک شاخه جدید ایجاد کنید:git checkout -b feature-branch
. -
Make your changes and commit:
git commit -m 'Add new feature'
.
تغییرات خود را اعمال کنید و کامیت بزنید:git commit -m 'افزودن ویژگی جدید'
. -
Push to the branch:
git push origin feature-branch
.
تغییرات را پوش کنید:git push origin feature-branch
. -
Submit a pull request.
درخواست Pull Request ارسال کنید.
This project is licensed under the MIT License.
این پروژه تحت مجوز MIT ارائه شده است.