Skip to content

Release v2.7.0

Choose a tag to compare

@newfpv newfpv released this 20 Oct 00:33

Primary Bot Management Update 🤖

This update adds an owner-only account panel to the primary bot. Added bots stay independent and never receive controls for creating or managing other bots.

👤 Primary Bot, Primary Owner

  • Owner-Only Controls: Only the assigned owner of the primary bot can access Add bot and My bots. Both visibility and handler permissions are checked.
  • Independent Added Bots: Each added profile runs with a worker role. Environment overrides cannot promote it to the primary controller.
  • Private Controller Access: A shared middleware protects private settings and callbacks for each individual bot's assigned owner.

➕ Add Bots from Telegram

  • BotFather Token Flow: Send a token as text or a small .txt file, then assign your own account or another Telegram owner. Token messages are deleted and tokens are never echoed.
  • Fresh Owner Setup: The assigned owner opens the new bot and completes its own setup. Keys, prompts, sessions, conversations and archives are not copied from the primary profile.
  • Own Telegram Credentials: Each userbot uses Telegram API credentials saved in its own database, with its own environment as the fallback.
  • Automatic Runtime Transition: Adding the second bot replaces direct single-account mode with the shared supervisor. Further additions start without restarting existing bots.

📊 Compact, Private Statistics

  • Minimal Overview: Shows total, running and disabled counts plus public bot usernames and operating status.
  • No Sensitive Fields: Does not expose owner IDs, phone numbers, API keys, Telegram sessions, prompts or message contents. Statistics do not read other profiles' conversation databases.
  • Worker Controls: Enable, disable and restart an added bot while preserving its data. The primary bot cannot be disabled from this panel.

✅ Installation & Verification

  • Primary Bot by Default: Fresh Linux installations create the primary controller; existing standalone installations retain their data until explicitly adopted.
  • 167 Automated Tests Passed: Includes owner assignment, primary-only controls, forged role overrides, empty independent databases, public statistics, private callback access and per-account Telegram credentials.
  • Offline Runtime Checks Passed: Verified single-to-shared promotion, separate owners and tokens, no copied private data, safe status snapshots and worker controls that leave the primary worker running.
  • Changed Files: Added the managed account backend, primary bot UI and owner middleware; updated the runtime, onboarding bindings, installer, documentation, translations and regression tests.

Full Changelog: v2.6.0...v2.7.0