Bot Integration Setup
Configure Telegram Bot with Make.com Automation
Integration Overview
This guide will help you set up the complete automation system with Telegram bot and Make.com integration for real-time data collection and automation.
Telegram Bot
Command interface
Make.com
Automation workflows
GEM Backend
Data processing
1 Create Your Telegram Bot
- Open Telegram and search for
@BotFather - Send command:
/newbot - Choose a name for your bot (e.g., "GEM Enterprise Bot")
- Choose a username ending in 'bot' (e.g.,
GEMEnterpriseBot) - Save your bot token:
123456789:ABCdefGHIjklMNOpqrSTUvwxYZ
Important: Keep your bot token secure. Never share it publicly.
Configure Bot Settings
Send these commands to BotFather:
/setdescription
GEM Enterprise Bot - Automated security, real estate, and asset recovery services
/setabouttext
Advanced automation bot for cybersecurity monitoring, property management, and digital asset recovery.
/setcommands
start - Start the bot
help - Show available commands
scan_network - Security network scan
threat_report - Get threat assessment
property_list - View available properties
track_wallet - Monitor crypto wallet
status - Check system status
2 Create Telegram Channel
- In Telegram, click Menu → New Channel
- Name it: "GEM Enterprise Alerts"
- Make it Public or Private as needed
- Add your bot as an administrator with these permissions:
- Post messages
- Edit messages
- Delete messages
- Get your channel ID:
- Post any message in the channel
- Forward it to
@userinfobot - Save the channel ID (e.g.,
-1001234567890)
3 Set Up Make.com Automation
Create Make.com Account
- Go to make.com and sign up
- Create a new scenario
- Add the Telegram Bot module
- Connect with your bot token
Security Monitoring Workflow
Trigger
Bot Command
GEM API
Process
Response
Create Webhook in Make.com
- Add a "Webhooks" module as trigger
- Copy the webhook URL:
https://hook.make.com/xxxxxxxxxxxxx - Add "HTTP" module to send data to GEM API
- URL:
https://www.gemcybersecurityassist.com/make/webhook - Method: POST
- Headers:
Content-Type: application/json
Webhook URLs:
GEM to Make.com: Your Make.com webhook URL
Make.com to GEM:
GEM to Make.com: Your Make.com webhook URL
Make.com to GEM:
https://www.gemcybersecurityassist.com/make/webhook
4 Configure Environment Variables
Add these environment variables to your application:
TELEGRAM_BOT_TOKEN=your_bot_token_here
TELEGRAM_CHANNEL_ID=-1001234567890
MAKE_WEBHOOK_URL=https://hook.make.com/your_webhook_id
Current Configuration Status
| TELEGRAM_BOT_TOKEN | Not Set |
| TELEGRAM_CHANNEL_ID | Not Set |
| MAKE_WEBHOOK_URL | Not Set |
Please configure all environment variables to enable bot functionality.
5 Connect Bot to GEM Backend
Set your Telegram bot webhook to receive updates:
curl -X POST https://api.telegram.org/bot{YOUR_BOT_TOKEN}/setWebhook \
-H "Content-Type: application/json" \
-d '{"url": "https://www.gemcybersecurityassist.com/telegram/webhook"}'
6 Test Your Integration
Test Commands
Send these commands to your bot to test functionality:
/start
Initialize bot and receive welcome message
/status
Check system status and connections
/scan_network
Test security scanning workflow
Test Make.com Webhook
API Endpoints
Webhook Endpoints
| Endpoint | Method | Description |
|---|---|---|
/telegram/webhook |
POST | Receives Telegram bot updates |
/make/webhook |
POST | Receives Make.com automation triggers |
/telegram/bot-setup |
GET | This setup page |
Event Types for Make.com
security_alert- Security threat detectedproperty_update- Property status changerecovery_update- Asset recovery progressuser_onboarding- New user registrationschedule_viewing- Property viewing request
Troubleshooting
- Check if webhook is properly set
- Verify bot token is correct
- Ensure bot has permission to read messages
- Check server logs for errors
- Verify webhook URL is correct
- Check Make.com scenario is activated
- Test with manual trigger in Make.com
- Check webhook authentication if configured
- Verify channel ID is correct (should start with -100)
- Ensure bot is admin in the channel
- Check bot has permission to post messages
- Test with direct message first