Botyard
Docs

Privacy and bot tokens

A bot token controls a bot. Botyard keeps it on one server, encrypted, and deletes it when the bot stops.

The token

  • The token goes from your browser to the web API, which passes it to the worker over HTTPS with a shared secret. The web host does not store it.
  • The worker encrypts it with AES-256-GCM. The key lives only in the worker's secrets, not in the database and not on the web host.
  • Tokens are never written to logs.
  • When the bot stops (you stop it, or the lease ends), the worker calls deleteWebhook and deletes the encrypted token.
  • You can revoke a token at any time in BotFather with /revoke; the bot stops answering at once.

The webhook

Each bot gets its own webhook URL on the worker and its own random secret, given to Telegram with setWebhook. Telegram sends that secret with every update and the worker drops any update without it.

What a bot keeps

DataWhyHow long
Your wallet address and the lease idTo know whose bot it is and how long it runs.On-chain for good; on the worker with the bot
The bot's configTo run the modules.Kept with the stopped bot until you ask us to delete it
The group id and titleTo post in the right group.Kept with the stopped bot until you ask us to delete it
Member ids, join time, captcha stateFor the captcha and the new-member rules.Deleted when the bot stops
Message counters per dayFor the daily limits and the numbers in My bots.Kept with the stopped bot
Your docs pages, split in paragraphsFor AI answers.Re-crawled daily, deleted when the bot stops

The bot reads group messages to apply anti-spam rules and to see mentions; it does not store message text. Questions sent to AI answers are passed to the model with the matching paragraphs to write the reply.