Skip to content

Release: post every published version to the Telegram channel - #80

Merged
professorDeveloper merged 1 commit into
masterfrom
feat/telegram-channel-post
Nov 18, 2026
Merged

professorDeveloper merged 1 commit into
masterfrom
feat/telegram-channel-post

Conversation

@professorDeveloper

Copy link
Copy Markdown
Owner

What

Every published release now posts to the Telegram channel in the same style as the hand-made 3.2.1 post: the banner, then

  • 🐉 Sozo X is out!
  • an italic tagline;
  • a short list of what changed;
  • All files (Windows, macOS, Linux, iOS, Android): Link (the release page);
  • TV Side: Link (the latest sozo-tv release);
  • Discord and Need help? Profile → Help & Support.

Where the list comes from

  1. A hidden block in docs/releases/vX.Y.Z.md, when it exists. This is the way to get exactly the wording you want:
    <!-- telegram
    tagline: Fixes for what you reported, on your phone and on your TV.
    - No more endless "Video loading": if a server doesn't start, Sozo moves to the next one by itself.
    - New corner player on desktop: press **I** and keep watching while you browse.
    -->
    
  2. Otherwise the bold titles of the notes, one per section in turn, at most 7. Download and community sections and labels like Windows: are skipped.
  3. Otherwise the merged PR titles.

The caption stays within Telegram's 1024-character photo caption limit, counted the way Telegram counts it: visible text in UTF-16, so link URLs don't count. When it runs out of room, it drops bullets, never the links.

Setup needed once

  • Repository variable TELEGRAM_CHANNEL, e.g. @sozoapp.
  • The bot must be an admin of the channel with permission to post. It uses TELEGRAM_CHANNEL_BOT_TOKEN if set, otherwise the existing TELEGRAM_BOT_TOKEN.

Until the variable is set, the step only leaves a notice. The channel post goes out only when the release is published and the publish job succeeded, because the post links to the release page. Draft runs and runs with announce: false don't post.

The existing build delivery to TELEGRAM_CHAT_IDS (the APK files) is unchanged and now uses the same caption.

Checks

  • python3 tool/compose_release_notes_test.py: 22 tests pass, including new ones for the hidden block, the fallbacks, the length limit and a single oversized bullet.
  • actionlint: no new findings in release.yml.
  • Rendered against the real v3.2.1 notes; the result fits the limit.

The caption is now the channel post the owner writes by hand: a bold
"Sozo X is out!", an italic tagline, a short list, then All files and
TV Side links, Discord and Help & Support. The list comes from a hidden
<!-- telegram --> block in the notes when there is one, otherwise from
the notes' bold titles, one per section in turn, otherwise from the
merged changes. Length is measured the way Telegram counts it.

A new step posts the banner and this caption to the channel named by the
TELEGRAM_CHANNEL variable once the release is published.
@professorDeveloper
professorDeveloper merged commit b2af808 into master Nov 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant