Telegram bot contact intergratie
This commit is contained in:
@ -19,6 +19,38 @@ The application supports the following environment variables:
|
||||
| `KVK` | `12345678` | KVK number for contact information |
|
||||
| `EMAIL` | `info@hogelandlinux.nl` | Contact email address |
|
||||
| `PHONE` | `+31 6 12345678` | Contact phone number |
|
||||
| `TELEGRAM_BOT_TOKEN` | *(empty)* | Telegram bot token for contact form notifications |
|
||||
| `TELEGRAM_CHAT_ID` | *(empty)* | Telegram chat ID where notifications will be sent |
|
||||
|
||||
## Telegram Integration Setup (Optional)
|
||||
|
||||
The contact form can send notifications to a Telegram chat. To set this up:
|
||||
|
||||
### 1. Create a Telegram Bot
|
||||
|
||||
1. Message [@BotFather](https://t.me/BotFather) on Telegram
|
||||
2. Send `/newbot` command
|
||||
3. Follow the instructions to create your bot
|
||||
4. Copy the bot token (looks like `123456789:ABCdefGHIjklMNOpqrsTUVwxyz`)
|
||||
|
||||
### 2. Get Your Chat ID
|
||||
|
||||
1. Add your bot to the chat where you want notifications
|
||||
2. Send a message to the bot in that chat
|
||||
3. Visit `https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates`
|
||||
4. Look for the `chat.id` field in the response
|
||||
5. Copy the chat ID (can be positive or negative number)
|
||||
|
||||
### 3. Configure Environment Variables
|
||||
|
||||
Set the following environment variables in your deployment:
|
||||
|
||||
```bash
|
||||
TELEGRAM_BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
|
||||
TELEGRAM_CHAT_ID=123456789
|
||||
```
|
||||
|
||||
**Note:** If these variables are not set, the contact form will still work but won't send Telegram notifications.
|
||||
|
||||
## Coolify Deployment Steps
|
||||
|
||||
@ -52,8 +84,12 @@ COMPANY_NAME=Hogeland Linux
|
||||
KVK=12345678
|
||||
EMAIL=info@hogelandlinux.nl
|
||||
PHONE=+31 6 12345678
|
||||
TELEGRAM_BOT_TOKEN=your_bot_token_here
|
||||
TELEGRAM_CHAT_ID=your_chat_id_here
|
||||
```
|
||||
|
||||
**Note:** The Telegram variables are optional. If not set, the contact form will work but won't send notifications.
|
||||
|
||||
### 5. Configure Domain
|
||||
|
||||
- Set your desired domain/subdomain
|
||||
|
Reference in New Issue
Block a user