Skip to content

v0.6.0 — Telegram bot

Latest

Choose a tag to compare

@martinopiaggi martinopiaggi released this 22 Nov 15:49
· 1 commit to main since this release

Highlights

  • Telegram bot (summarizer telegram): send it a link, a video, a round video message, an audio file, a voice message, a text file or long text, and the summary comes back as a Telegram rich message with the Markdown (headings, lists, tables, code) rendered natively. Long summaries are split at block boundaries, with a plain-text fallback.
  • Buttons under each summary send the .md file or the transcript, or redo the summary in another style from the cached transcript.
  • /settings picks provider, style, languages, visual mode and captions per chat. Admins can view, download (API keys hidden), edit (/set) or replace summarizer.yaml.
  • Groups: reply to a video, voice message or link with /s (short for /summarize), or with just @yourbot when the bot can read the group (privacy mode off, or the bot is a group admin).
  • Private by default: nobody can use the bot until TELEGRAM_ALLOWED_USERS (or TELEGRAM_ALLOWED_CHATS for a whole group) is set. No new dependencies; docker-compose.telegram.yml is included, with an optional local Bot API server for files over 20 MB.

Quick start: create a bot with @BotFather, add TELEGRAM_BOT_TOKEN and TELEGRAM_ALLOWED_USERS to .env, then run summarizer telegram. See Telegram Bot.

Fixes

  • parallel-calls and max-tokens under defaults: (or a provider) in summarizer.yaml are now honored by the CLI and the HTTP API, not only by the Streamlit app.
  • cache-transcript-persist and cache-transcript-dir in summarizer.yaml are now honored by the CLI and the HTTP API, not only the SUMMARIZER_CACHE_* environment variables.

Packages

  • PyPI: martino-summarize==0.6.0 (CLI package)
  • Docker: ghcr.io/martinopiaggi/summarize:0.6.0 (Streamlit UI)

Full details: CHANGELOG.md.