Message your users on Telegram through TUNGKAO's bot — no bot of your own. E.g. payment received, order status, OTP.
🕒 Last updated: Thailand time (UTC+07:00) · ✅ Your existing code keeps working
🤖 Let an AI write the integration
Copy this link for an AI to read (the whole API as Markdown), or press a button: the prompt is copied and the AI opens — paste it and tell it your language/framework
This link returns this API's updates as JSON (no key, any origin). Have your admin page show it as an “Update announcements” box and flag “New” when last_updated changes
Copy + open in: pressing an AI button copies the prompt automatically — if the chat box is empty, just paste
🔑 Key to use
Create a telegram_notify key in the merchant portal (API keys) and send this header with every request — keys of other services won't work here
Authorization: Bearer $TUNGKAO_KEY
📋 How it works
ref is your own name for a recipient (use your member id, e.g. member-1001): A-Z a-z 0-9 _ . : @ - up to 128 chars. Every call refers to the recipient by this ref.
Add a recipient: your server calls POST /v1/telegram/link {ref} → gets data.url (a t.me/…?start=… link) → show it as a “Connect Telegram” button on the member's profile page (valid 30 minutes, single use; request again any time).
The member opens the link → presses Start in Telegram → the bot confirms (Telegram does not let a bot message someone who never pressed Start, so this step cannot be skipped).
Check the connection: GET /v1/telegram/recipients (status = active) — use it to switch your button to “Connected ✓”.
Send: POST /v1/telegram/send with one ref or up to 100 refs; bold text (parse_mode: HTML) and a link button are supported. Per-recipient results are in data.results: sent / not_linked / failed.
Remove a recipient: DELETE /v1/telegram/recipients/{ref}. Members can also send /stop to the bot. If a member blocks the bot, that recipient is paused until they connect again.
Try it without code: TUNGKAO API key page → this key's card → “Set up notifications” has a create-link button (with QR) and a send-test button.
Per-API docs pages with AI links (ChatGPT / Claude / Gemini / Grok) in 10 languages
SecurityThailand time (UTC+07:00)
Domain verification per API key (1 key = 1 site) — existing keys keep working
AddedThailand time (UTC+07:00)
Optional HMAC request signing — nothing changes unless you turn it on
NewThailand time (UTC+07:00)
Launched Telegram and Discord notifications
AddedThailand time (UTC+07:00)
API key lifetimes, expiry warnings and renewal — the key string never changes
AddedThailand time (UTC+07:00)
Test-mode keys (simulated, free) for every service
✅ Your existing code keeps working
🛡️ Stability promise: integrate once, keep working
API /v1 is frozen: nothing is removed, renamed or retyped — only new fields or endpoints are added. Automated contract tests block any deploy that would break existing code.
When providers (banks, LINE, Google, Facebook, TikTok, Discord, Telegram, blockchains) change, we adapt on our servers — your code stays the same. Slip checks fail over across 3 providers automatically.
Write future-proof code: ignore unknown fields, branch on error.code (not message text), and treat an unknown new status as “not passed / pending”.
If something ever must be retired, we announce it at least 12 months ahead via Deprecation / Sunset headers on every response, email and webhook — the old behaviour keeps working until then.
Every response carries an X-Tungkao-Api-Version header with the version and latest revision date. Full history: /changelog.json
🚦 System status (GET /status)
Check any time whether the API is healthy — no key needed
GET https://api.tungkao.com/status
🟢 ok = normal
🟠 busy = high traffic
🔴 slow = minor delays
Measured from real requests over the last 5 minutes, per service (services[]). Slip verification and slip deposits are measured across every backup provider, with each route's state in routes[]
No API key; callable from browsers (CORS open); cached 15 s — poll at most once a minute
On busy/slow, raise your timeout to 15–20 s and retry with the same Idempotency-Key — you are never charged twice
paused[] lists service codes TUNGKAO has switched off for now (e.g. line_login) — grey that button out and show “System temporarily unavailable” (API calls return 503 SERVICE_PAUSED, nothing charged)
Every page or screen that uses a TUNGKAO service (slip check, deposits, crypto, login, notifications) must show visible “Powered by TUNGKAO” or “Secured by TUNGKAO” text linking to https://tungkao.com
Place it near the feature — under the sign-in button, under the slip upload, or on the payment page. Do not hide it, blend it into the background or make it unreadably small
Buttons from the “Login buttons” page include the credit automatically, and the hosted TUNGKAO sign-in page shows it itself
Example: <a href="https://tungkao.com" target="_blank" rel="noopener">Powered by TUNGKAO</a>
To remove the credit, buy the White-label add-on for that key on the API keys page in the portal (30 days at a time)