Yuva bots
A bot is an account that a program drives through the Bot API instead of a person through the app. Bots can read and post in text rooms, react, pin, upload files, receive webhook events, and sit in voice rooms and play audio, always within the permissions the lodge's staff gave them.
How it fits together#
You make a bot. In Yuva, open Ayarlar → Geliştirici, create a bot, and copy its token. The token is shown once; Yuva stores only its hash. You can create up to 5 scoped tokens, regenerate, or revoke them there any time. Each account can own up to 10 bots.
Staff add it to a lodge. Someone in the lodge with the Botları yönet staff power (or the owner) opens Sunucu ayarları → Botlar, pastes the bot's ID (
bot_…, copy it from the Geliştirici panel), and picks what the bot may do. They can only hand out rights they hold themselves; see permissions.Your program connects with the token (
Authorization: Bot <token>), lists its lodges and rooms, polls for new messages or listens via webhooks, posts, and joins voice.
Bots are not people, and Yuva keeps them apart where it matters:
They can't be invited, can't invite, and can't join lodges on their own: only staff add them.
They can't send or receive direct messages or friend requests.
They see only the lodges they were added to, and in those only the rooms their role can read.
Every message they post shows a BOT badge, as do their entries in member lists and profile cards.
Staff can change their rights, mute, move or disconnect them in voice, kick or ban them, like any member. Adding, changing and removing bots shows in the lodge's audit log.
Documentation#
Authentication: tokens, scopes, headers, revocation.
Permissions: what each right allows, overrides, who can grant what.
API reference: every endpoint, request, response, OpenAPI 3.1, and code examples.
Webhooks: optional HTTPS event delivery, HMAC signatures, and retries.
Voice guide: how bots sit and speak in voice rooms (LiveKit tickets, mesh signalling).
Rate limits: headers,
Retry-After, and per-endpoint budgets.Changelog: API additions and SDK version history.
Video API: a member's own key for uploading videos and managing their shares (not a bot token; made in the video studio), documented in the repository's
docs/app-api.md, section "Video API".Quickstarts: Python, TypeScript, JavaScript.
SDKs live in this repository: sdk/python (Python, httpx; voice via livekit, or aiortc in mesh lodges) and sdk/js (one package for TypeScript and JavaScript; voice via @livekit/rtc-node, or werift in mesh lodges). LiveKit lodges need yuva-bot 2.0.0 or yuva_bot 0.2.0 or newer.