RU Open Web

Type to search client APIs, Bot API methods, and guides.

THEAVER DOCUMENTATION HUB

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

CLIENT REST API
https://api.theaver.app/api/*
Bearer JWT · X-Api-Id · X-Api-Hash

PoW SHA-256 registration, QR login, cursor history, 2 MiB chunked media uploads, and since_usn delta sync.

WEBSOCKET RPC
wss://api.theaver.app/api/ws
req_id ack · idempotent local_id

Bidirectional { type, req_id, data } frames for messaging, typing indicators, read_history, and call signaling.

HTTP BOT API & MINI APPS
https://api.theaver.app/bot<token>/<method>
window.Theaver.WebApp v8 · HMAC-SHA256

Webhooks with X-Theaver-Bot-Api-Secret-Token, inline keyboards, verified initData, and internal THV invoices.

Bots, Mini Apps v8 & Walt Ecosystem
@BotMother Tokens · /newclient HTTP Bot API /bot<token>/<method> Mini Apps v8 Theaver.WebApp · Theme Walt Wallet (THV) Invoices · Checks · Payouts
01 · CLIENT PROTOCOL & API

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.

11 guides
01

Client Protocol Overview & api_id

Protocol architecture, official vs custom client credentials (api_id / api_hash), required device headers, and Feistel entity IDs.

02

Authentication & Sessions

Discovery, SHA-256 Proof-of-Work challenges, registration, password/2FA login, QR code linking, OAuth, and session lifecycle.

03

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.

04

Messages, Entities & Formatting

Message pagination cursors, sending text/media/quotes/spoilers/TTL messages, albums, editing, pins, reactions, drafts, polls, and scheduled posts.

05

Chats, Groups, Channels & Communities

Dialog list, Saved Messages, folders, group permissions, invite links, join requests, forum topics, channel links, and Discord-like communities.

06

Media, Chunked Uploads, Stickers & GIFs

Standard uploads, 2 MiB resumable chunked uploads, SHA-256 deduplication, HMAC-signed avatar tickets, stickers, and GIF endpoints.

07

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.

08

Client REST API Reference

Complete REST endpoint map across auth, developer apps, updates, chats, messages, communities, files, calls, privacy, and releases.

09

WebSocket API & RPC

Bidirectional WebSocket stream (/api/ws), client RPC frame schema ({ type, req_id, data }), and real-time server events.

10

Error Codes & Rate Limits

Canonical JSON error contract, HTTP status mappings, custom api_id RPM quotas, and FLOOD_WAIT / SLOWMODE_WAIT backoff handling.

11

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.

02 · BOTS & MINI APPS

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.

5 guides
03 · USER GUIDE & SECURITY

User Guide

Getting started across platforms, verifying release signatures, topics and communities, desktop multi-pane layout, stickers, cloud 2FA passwords, and the @walt wallet.

5 guides