REPOSITORY / ScuroNeko/Laniakea

Releases

RELEASES REPOSITORY
  • 2.0.0 RC3
    Golang lint / lint (push) Successful in 4m11s
    Pre-Release

    ScuroNeko released this 2026-10-08 10:49:29 +03:00 | 3 commits to dev since this release

    v2.0.0-rc.3 (2026-10-08)

    Added

    • Added MultiObserver and NewMultiObserver to forward observer events synchronously or asynchronously to multiple observers.

    Changed

    • Migrated JSON encoding and decoding to encoding/json/v2, including stricter UTF-8 and duplicate-key handling. Nil slices and maps now encode as empty arrays and objects when included; optional scalar zero values and nil pointers remain omitted in Telegram types.
    • Webhook status responses now use compact JSON.
    • Prepared version metadata for v2.0.0-rc.3.
    • Documented Telegram JSON presence and empty-value rules in English and Russian.

    Breaking changes

    • Normalized optional primitive fields across Telegram user/chat, administrator/business rights, invite, sticker, story/profile/media, callback, and polling types: true-only flags and values with equivalent absent/zero semantics are now scalars. Keyboard filters, getMe-only capabilities, variant-specific member fields, and meaningful zero values retain pointers.
    • Changed poll anonymity/revoting, inline-query cache duration, promotion restriction rights, inherited chat permissions, copied captions, and edited topic icons to pointers to distinguish omission from explicit false, zero, or empty strings. Gift conversion/transfer costs and the next user-rating threshold now preserve unavailable values with pointers. See the paired JSON migration guides.
    • Changed RichTextUnknown.Raw and RichBlockUnknown.Raw from json.RawMessage to jsontext.Value.

    Fixed

    • Restored Telegram defaults for anonymous polls, revoting, inline-query caching, channel promotion, and inherited chat permissions while allowing explicit overrides. Empty copied captions and topic icons can now be removed deliberately.
    • Preserved explicit false media permissions to avoid Telegram legacy permission inheritance.
    • Preserved explicitly empty allowed_updates lists in JSON and multipart requests while omitting nil lists, so callers can restore Telegram's default update selection.
    • Preserved explicitly supplied empty objects and string pointers, including disabled buttons, unrestricted poll requests, and empty rich-button inline queries.
    • Aligned multipart omitempty and omitzero handling with JSON v2 and skipped unexported fields.
    • Completed JSON v2 raw-value validation and test imports.

    Tests

    • Added JSON and multipart regression coverage for absent fields, empty arrays and objects, empty string pointers, required nil collections, scalar defaults, inherited permissions, primitive overrides, and absent versus zero response values.

    What's Changed

    Full Changelog: v2.0.0-rc.2...v2.0.0-rc.3

    Downloads