Jump to content

User:NellieBly Bot/privacy

From Meta, a Wikimedia project coordination wiki

This page describes what NellyBly bot ingests, publishes, stores, pseudonymizes, and deletes, based on the Blybot source code at https://github.com/schiste/blybot.

Short version

[edit]
  • Normal /log and DM use stores no Telegram user IDs, usernames, or display names.
  • /log and /logmedia publish selected content publicly and permanently on wiki pages.
  • DM transcription uses a random per-session pseudonym kept only in memory.
  • Self-service group configuration stores group/topic settings, not user identities.
  • Capture is opt-in. In captured chats, message text is archived with per-chat pseudonym author labels.
  • /capture off stops capture; /capture purge deletes that scope's archive.
  • The bot cannot protect content that identifies its author in its own words or public wiki edit timestamps.

What the bot ingests

[edit]

Normal deployments

[edit]

With Telegram privacy mode on, the bot receives only the update types it needs:

  • group commands such as /log, /logmedia, /help, and admin commands;
  • the message being replied to when someone uses /log or /logmedia;
  • private messages sent directly to the bot;
  • group membership/service updates needed for greeting, newcomer prompts, and supergroup migration handling.

The bot does not receive ordinary group chatter in this mode.

Capture-enabled deployments

[edit]

Capture-enabled deployments require Telegram privacy mode off. In that posture, the bot can technically receive ordinary messages in chats where it is present, but it archives messages only for scopes that opted in:

  • groups opt in when an admin runs /capture on;
  • groups opt out with /capture off;
  • groups delete archived messages with /capture purge or /capture purge before:YYYY-MM-DD;
  • channels opt in by making the bot a channel admin; the bot posts an announcement before enabling capture;
  • channels opt out by demoting or removing the bot.

What is published

[edit]
Feature Public output
/log One new wiki discussion section containing sanitized selected text. It has no Telegram username, display name, or user ID.
/logmedia The selected text/caption plus one supported image attachment, uploaded under a non-identifying generated filename. The file description marks licensing as pending review.
Private messages A wiki discussion section under a random per-session pseudonym. Further messages in the same session continue that section.
/bug / private /issue An anonymous issue on the bot maintainer's issue tracker, if enabled.
Group /issue An anonymous issue in the group's bound GitHub repository, if configured.
Capture analyses Machine-generated summaries, talking points, or statistics. These name no Telegram users, but they are derived from captured chat content.

All wiki output is public and practically permanent.

What is stored persistently

[edit]
Store Contents
Toolforge env file Bot token, wiki credentials, user agent, optional GitHub token, encryption keys, and runtime settings. The startup script refuses config files that are not chmod 600.
ToolsDB profiles table Group chat ID, forum topic/thread ID, configured log page, bound GitHub repo, consent policy, event notification state, rules JSON, poll cursors JSON, LLM settings JSON, scheduled action JSON, capture enabled state, and encrypted

group-supplied GitHub token if present.

ToolsDB messages table Only for capture-enabled scopes: group chat ID, thread ID, Telegram message ID, timestamp, pseudonym author label, kind (text or media_note), text, and reply-to message ID.
Operational logs Event names, outcomes, counters, retry/error codes. The logging layer is designed not to log message content, Telegram names, or Telegram identifiers.

The current codebase also contains an isolated digest-subscription data model that can store a subscriber's private Telegram chat ID if subscription commands are wired into a deployment. The current Telegram application does not register public /subscribe commands.

What is kept only in memory

[edit]
  • DM session map keyed by private chat ID.
  • The current random DM pseudonym.
  • Pending DM destination choice.
  • Chosen DM route to a group page.
  • Short-lived GitHub token-entry state.
  • Rate-limit keys for recent command use.
  • Capture policy cache.

This memory state expires, is swept, or disappears on process restart.

Pseudonymization

[edit]
Context Pseudonym behavior
/log A one-off random pseudonym is minted for that single entry. It is not derived from a Telegram identity and is not reused intentionally.
DM transcription A random per-session pseudonym is minted with a cryptographic random source. It remains only in memory until timeout, /flush, or restart.
Capture archive Group authors are reduced at the Telegram adapter boundary to an HMAC-SHA256 label scoped to chat and topic. Labels are stable inside one scope for statistics, but unlinkable across scopes.
Channels Broadcast channel posts have no Telegram author in the archive and are counted as channel posts.

Rotating the archive pseudonym key changes future capture labels. Already archived labels remain as stored labels because the Telegram user ID used to compute them is not stored.

Opt-in and opt-out

[edit]
Area Opt-in Opt-out / deletion
/log A user explicitly replies with /log. No bot-side unpublish command; use normal wiki processes.
DM transcription A user sends the bot a private message and chooses a shared group destination. /flush starts a fresh identity. Session state also expires or vanishes on restart. Published wiki text remains public.
Group configuration Group admins run commands such as /setpage and /setrepo. /reset deletes that group's stored profile. /revoke deletes the stored GitHub token.
Repository notifications Admin runs /events on. /events off, /rule clear, or /reset.
Capture in groups Admin runs /capture on, which posts a visible announcement. /capture off stops future archiving. /capture purge deletes archived rows.
Capture in channels Channel admins make the bot a channel admin; the bot announces first. Demote or remove the bot.
Scheduled analyses Admin runs /action add .... /action remove <id> or /reset.
[edit]

Group admins can set:

  • /setconsent immediate — any participant may use /log on a replied-to message.
  • /setconsent author_only — only the original author may log their own message.

The code recognizes confirm as a reserved future mode, but the confirmation flow is not implemented and cannot be configured.

Limits

[edit]

NellyBly bot cannot hide:

  • identifying details inside the message text itself;
  • the public wiki edit time;
  • content already copied, mirrored, dumped, or quoted after publication;
  • Telegram edits/deletions after capture. The archive stores the first captured version; Telegram deletions are not reported to bots.

External services

[edit]

The bot uses:

  • Telegram Bot API for bot updates and messages;
  • MediaWiki Action API for wiki edits and uploads;
  • Wikimedia Toolforge and ToolsDB for runtime and optional storage;
  • GitHub API for issue filing, repository summaries, and repository event polling when enabled;
  • Wikimedia LiftWing Qwen models for LLM analyses when capture/analysis is enabled.