Skip to content

Release v2.3.0

Choose a tag to compare

@newfpv newfpv released this 09 Oct 13:00

Menu Responsiveness, QR Login & Media Update ⚡

This update makes the private control menu more responsive during Telegram reconnects, adds QR-based account login, expands media downloading with Pinterest and TikTok photo albums, and improves voice processing and the .fix Text Structurer command. It includes all changes since v2.2.1.

✨ New Features

  • QR Account Login: Added an alternative QR login flow with QR generation, authorization checks, and support for the existing two-step verification flow.
  • Pinterest Downloads: Added support for Pinterest pin URLs and pin.it links, including photo and video extraction and global/per-chat platform switches.
  • TikTok Photo Albums: Added a gallery-dl fallback for photo posts when video extraction cannot produce suitable media.
  • Batch Text Structuring via .fix: Commands such as .fix 5 combine recent messages into one structured text in chronological order. Batch processing supports text, voice, audio, and video notes, with a maximum of 20 messages and an optional custom instruction.
  • Voice Summary-Only Mode: Added global and per-chat settings to return a concise summary instead of the full transcription.
  • Manual Chat List Refresh: Added a refresh button to the private chat list while keeping the last known list available during reconnects.

🔧 Menu, Media & Voice Improvements

  • Chat Settings Without Profile Requests: Opening a chat's settings no longer waits for a full Telegram profile request. The menu uses the cached dialog name, or the chat ID if the name is unavailable.
  • Persistent Dialog Cache: Private dialogs are cached for 60 seconds and saved locally. Cached lists remain usable while Telegram reconnects; initial loading and manual refresh are limited to six seconds.
  • Responsive Button Feedback: Navigation callbacks are acknowledged before processing. Custom handler notifications are preserved, and duplicate empty acknowledgements are suppressed.
  • Main Menu During Reconnects: Local control settings remain accessible when the userbot is temporarily disconnected.
  • Bounded Profile Loading: Requests in the user information screens now have individual six-second timeouts and a readable retry message.
  • Native Media Delivery: Downloads can be sent as videos, photos, or media groups. Album batches respect Telegram's ten-item limit, captions are bounded, and link captions are escaped for HTML.
  • Ordered Voice Processing: Voice tasks are processed through per-chat queues, with improved chunking for long transcription and summary output.
  • Clearer Login Feedback: Account authorization now displays code delivery details and removes temporary QR messages when the flow finishes or changes.

🛡️ Stability & Protection

  • Outdated Menu Render Protection: A slow earlier request no longer redraws the menu after the user has selected another button.
  • Menu & Event Loop Diagnostics: Added logs for callbacks taking at least two seconds and event loop delays of at least one second.
  • Group Message Filtering: Foreign group messages are stopped before general automation handlers, with an exception for explicitly configured shopping-list auto chats. Own group commands remain supported by the relevant modules.
  • Safe Source Message Deletion: Batch .fix source messages are deleted only after a successful final edit. Download source links are removed only after media delivery succeeds when link replacement is enabled.
  • Background Download & Cleanup: Media extraction runs outside the event loop, uses isolated temporary directories, and cleans them up after processing.
  • Docker Build Hygiene: Added .dockerignore rules for runtime data, credentials, virtual environments, Git metadata, session files, and temporary artifacts. Added ffmpeg to the Docker image for media merging.
  • AI Command Prompt Separation: The .ai command now uses its dedicated default prompt instead of inheriting the conversational AI Twin prompt.

🗂️ Changed Files

  • core/menu.py

    • Added bounded dialog refresh, persistent caching, cached names, and refresh sharing between concurrent requests.
  • core/menu_middleware.py

    • Added callback acknowledgement tracking, outdated render protection, slow callback logs, and event loop monitoring.
  • main.py

    • Integrated cached chat navigation, the refresh button, callback middleware, reconnect-friendly controls, and the group message guard.
  • core/utils.py & modules/info.py

    • Added stale render checks, escaped profile errors, and bounded user information requests.
  • core/auth.py

    • Added QR login helpers, authorization checks, temporary QR cleanup, and code delivery feedback.
  • modules/media_downloader.py

    • Added Pinterest switches, gallery extraction, TikTok photo support, native album delivery, caption handling, and temporary download directories.
  • modules/text_struct.py & modules/voice_transcriber.py

    • Added batch .fix, chronological source assembly, safe batch cleanup, summary-only settings, and per-chat voice queues.
  • modules/ai_command.py & modules/shop_list.py

    • Updated command prompt defaults and group filtering, including configured shopping-list auto-chat exceptions.
  • core/db.py

    • Updated the default Gemini model fallback list.
  • language_RU.json & language_EN.json

    • Added and updated localized login, media, voice, AI command, and menu messages.
  • Dockerfile, .dockerignore & pyproject.toml

    • Added Docker build exclusions, ffmpeg, gallery-dl, and qrcode[pil].
  • README.md

    • Replaced the embedded full guide with a concise project overview and a link to the website wiki, and added the SpyBot inspiration credit.

Full Changelog: v2.2.1...v2.3.0