Integrations
Connectors
Connectors are incoming channels for receiving events from external systems: Telegram bots, webhook receivers, and other event sources. Each connector can be a pipeline trigger.
Telegram Bot
Connect your Telegram bot to M-TEH so the pipeline processes user messages from Telegram.
Create a bot with @BotFather
Send
/newbot, set a name and username. Copy the token in the format 123456:ABC-DEF...Add a Telegram Bot integration
In Integrations → Add, select the "Connectors" group and "Telegram Bot" type. Paste the bot token.
M-TEH automatically sets up the webhook
On save, M-TEH calls the Telegram Bot API and registers its webhook URL. No manual deployment needed.
Use in a pipeline
Add a Trigger Telegram node in the builder or select the bot as the first pipeline step.
Context variables
| Variable | Value |
|---|---|
{{message}} | User's message text |
{{telegram_user_id}} | Telegram User ID |
{{telegram_username}} | Username (if public) |
{{telegram_chat_id}} | Chat ID |
{{telegram_first_name}} | User's first name |
Webhook Receiver
Receive events from any external system via HTTP POST. Suitable for CRM, payment systems, monitoring systems, and other services.
Setup
After creating a Webhook integration you get a unique URL:
Webhook URLPOST https://your-domain.com/api/webhook/mth_abc123...
Send a test request:
cURLcurl -X POST https://your-domain.com/api/webhook/mth_abc123 \
-H "Content-Type: application/json" \
-d '{"event":"order_paid","order_id":42,"amount":1990}'
Field mapping
All request body fields are available in the pipeline context directly:
| JSON field | Context variable |
|---|---|
event | {{event}} |
order_id | {{order_id}} |
amount | {{amount}} |
Webhook requests don't require authentication from the calling system — just knowledge of the unique URL.
For extra security, use HMAC signatures and verify them in a Condition node.