Connection

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

Current: 4c****f7

How to wire Apps

  1. Start this sample → http://localhost:8090
  2. Save the form above (platform URL, tenant, Managed app id + secret for Open API).
  3. Telegram admin: App A Managed, backend URL = sample public URL, same secret.
  4. Open API page: push demo templates then routes.
  5. App B Passthrough, inbound path /telegram/inbound, Passthrough secret.
  6. Attach a bot to each app. Telegram webhook stays on the Telegram service.

Stored values

Base URLhttps://api.telegram.hkcorp.vip
Tenant509115
Managed app id4
Passthrough app id1
App secret4c****f7
Sample public URLhttps://api.telegram.hkcorp.vip

HMAC example timestamp 1737000000000 body {"triggerType":"COMMAND"}: 00e4ea43268d00ee5c32a2725cc17814e30c319e5c9033a835afe3f14e5e2826