Store Telegram platform URL, tenant, app ids, and secrets in MySQL (telegram_connection). Open API MD5 and inbound HMAC read this row — not application.yml.
Save credentials
How to wire Apps
- Start this sample → http://localhost:8090
- Save the form above (platform URL, tenant, Managed app id + secret for Open API).
- Telegram admin: App A Managed, backend URL = sample public URL, same secret.
- Open API page: push demo templates then routes.
- App B Passthrough, inbound path
/telegram/inbound, Passthrough secret. - Attach a bot to each app. Telegram webhook stays on the Telegram service.
Stored values
| Base URL | https://api.telegram.hkcorp.vip |
|---|---|
| Tenant | 509115 |
| Managed app id | 4 |
| Passthrough app id | 1 |
| App secret | 4c****f7 |
| Sample public URL | https://api.telegram.hkcorp.vip |
HMAC example timestamp 1737000000000 body {"triggerType":"COMMAND"}:
00e4ea43268d00ee5c32a2725cc17814e30c319e5c9033a835afe3f14e5e2826