Open protocol for custom clients, bots, and daily workflows.
Explore verified REST and WebSocket RPC contracts backed by the Go server, register custom api_id / api_hash pairs in the Developer Console or @BotMother, and build Mini Apps.
Platform entrypoints
https://api.theaver.app/api/* PoW SHA-256 registration, QR login, cursor history, 2 MiB chunked media uploads, and since_usn delta sync.
wss://api.theaver.app/api/ws Bidirectional { type, req_id, data } frames for messaging, typing indicators, read_history, and call signaling.
https://api.theaver.app/bot<token>/<method> Webhooks with X-Theaver-Bot-Api-Secret-Token, inline keyboards, verified initData, and internal THV invoices.
Build Your Own Client
Everything required to build a standalone Theaver client: api_id / api_hash registration, PoW and QR authentication, monotonic since_usn delta sync, chunked uploads, LiveKit WebRTC calls, and WebSocket RPC.
Client Protocol Overview & api_id
Protocol architecture, official vs custom client credentials (api_id / api_hash), required device headers, and Feistel entity IDs.
Authentication & Sessions
Discovery, SHA-256 Proof-of-Work challenges, registration, password/2FA login, QR code linking, OAuth, and session lifecycle.
Delta Sync, USN & Offline Storage
Incremental sync with GET /api/updates?since_usn=..., outbox idempotency via local_id, High-Water Mark read pointers, and local cache recovery.
Messages, Entities & Formatting
Message pagination cursors, sending text/media/quotes/spoilers/TTL messages, albums, editing, pins, reactions, drafts, polls, and scheduled posts.
Chats, Groups, Channels & Communities
Dialog list, Saved Messages, folders, group permissions, invite links, join requests, forum topics, channel links, and Discord-like communities.
Media, Chunked Uploads, Stickers & GIFs
Standard uploads, 2 MiB resumable chunked uploads, SHA-256 deduplication, HMAC-signed avatar tickets, stickers, and GIF endpoints.
Voice Calls, Streams & LiveKit WebRTC
1:1 encrypted calls, LiveKit SFU voice rooms, 1080p60 screen-share streams, Coturn TLS ICE discovery, and RTMP/WHIP ingress.
Client REST API Reference
Complete REST endpoint map across auth, developer apps, updates, chats, messages, communities, files, calls, privacy, and releases.
WebSocket API & RPC
Bidirectional WebSocket stream (/api/ws), client RPC frame schema ({ type, req_id, data }), and real-time server events.
Error Codes & Rate Limits
Canonical JSON error contract, HTTP status mappings, custom api_id RPM quotas, and FLOOD_WAIT / SLOWMODE_WAIT backoff handling.
Building Your First Client
Complete runnable client example using api_id / api_hash, REST login, delta sync (since_usn), WebSocket RPC, plus building the official Flutter app from source.
Bots & Mini Apps
HTTP Bot API v7.x, managing bots and client apps via @BotMother, webhooks and long polling, Mini Apps SDK v8 (window.Theaver.WebApp), internal THV payments, and bot migration.
Bot Platform Overview & @BotMother
Create bots and custom client apps via @BotMother, configure commands, inline mode, webhooks, and Mini Apps on Theaver.
Migrating from Telegram Bot API
Run existing aiogram, grammY, python-telegram-bot, or telegraf bots and Telegram WebApps on Theaver with zero code rewrites.
Updates, Messaging & Inline Mode
Reference for getUpdates, webhooks (X-Theaver-Bot-Api-Secret-Token), messages, inline keyboards, polls, moderation, and inline queries.
Mini Apps SDK (v8.0)
Build embedded web applications using window.Theaver.WebApp, reactive theme params, safe areas, CloudStorage, and X-Theaver-Init-Data verification.
Payments & Walt Ledger (THV)
Accept in-platform THV payments inside bots and Mini Apps with sendInvoice, createInvoiceLink, and successful_payment updates.
User Guide
Getting started across platforms, verifying release signatures, topics and communities, desktop multi-pane layout, stickers, cloud 2FA passwords, and the @walt wallet.
Getting Started
Installing Theaver on desktop, mobile, or browser, signing in with email/phone, OAuth, or QR codes, and viewing connected custom clients.
Verifying Downloads & Signatures
Check SHA-256 digests, detached Linux GPG signatures, and Windows Authenticode certificates before running an installer.
Chats, Channels & Calls
Chat formatting, cloud drafts, forum topics, channel comment threads, polls, voice notes, and 1080p60 screen-sharing calls.
Desktop Workspace & Media
Multi-pane layout on wide monitors, animated stickers, GIF picker, link-based sticker pack import, Liquid Glass and Classic themes.
Wallet & Account Security
Two-Factor Authentication, active session controls, privacy rules, account deletion, and the built-in Walt wallet (THV).