REPOSITORY / ScuroNeko/Laniakea
Releases
-
v2.0.0 RC 1
Pre-ReleaseGolang lint / lint (push) Failing after 1m37sreleased this
2026-09-08 23:21:38 +03:00 | 6 commits to dev since this releasev2.0.0-rc.1 (2026-09-08)
Added
- Added Bot API 10.3 rich buttons:
RichMessageButton,RichTextButton,RichBlockButtons, andInputRichBlockButtons, including inline-query chat selection, login, clipboard, and disabled actions. Empty inline queries are preserved through pointer fields;RichMessageButtonStyleLinksupports borderless callback buttons. - Added incoming and outgoing expandable block quotations and document blocks, with
tgrich.Button,Buttons,ButtonsWithAlign,ExpandableBlockquote,ExpandableBlockquoteWithCredit,Document, andDocumentWithCaptionhelpers. - Added compact rich tables through
IsCompactandRichTable.SetCompact, including JSON decoding and HTML rendering. - Added rich-button validation for a single action, permitted label entities and styles, callback byte limits, copy-text length, row size, and alignment. Invalid values return
ErrRichInvalidButtonfromtgrichbuilders. - Added HTML rendering for rich buttons, expandable quotations, and documents. Document media is collected into
InputRichMessage.Mediawithtg://document?id=references and supports multipart attachments through the existing rich-message uploader. - Added
EphemeralMessageParameters, includingReplaceCallbackQueryMessage, to JSON and multipart send parameters for text, rich messages, animation, audio, documents, live photos, photos, stickers, video, video notes, voice, contacts, locations, and venues. Ephemeral media editing now supports multipart attachments throughUploader.EditEphemeralMessageMedia. - Added
RichMessagetoEditEphemeralMessageTextandShowCaptionAboveMediatoEditEphemeralMessageCaption. - Added
CanStopandKeepOnStopto message and rich-message draft parameters. Stopped-generation updates are decoded asUpdateTypeMessageGenerationStoppedand expose their chat through normalized message context. - Added disabled inline buttons and
SetDisabled, plusForceReplysupport on specialized inline and reply keyboard markup. - Added
CommunityChatJoinedservice messages;UniqueGiftInfo.Text,Entities, andIsPrivate; andCanSendWelcomeMessagesto administrator members, rights, and promotion parameters. - Added
RichTextUnknownandRichBlockUnknownto preserve unrecognized Telegram rich objects without losing fields. - Added explicit
InlineKeyboard.SetUnlimitedRowsconfiguration.
Breaking changes
- Changed the Go module and import path to
git.scuroneko.dev/scuroneko/laniakea/v2, raised the minimum Go version to 1.27, and removed the v1-only retraction directive. PollAnswer.UserandVoterChatare now pointers; removedVoterUserandVoterChatInfo. Update-context normalization and tests use the pointer fields.RunnerFnandNewRunnernow require callbacks withcontext.Context; removedContextRunnerFnandNewContextRunner.InlineKeyboard.Getnow validates and returns(*tgapi.ReplyMarkup, error); removedGetValidatedand keyboard-levelValidate. Message-context helpers reject invalid keyboards before sending or editing. Previously built rows exceeding a subsequently lowered row limit now fail final validation.CallbackData.Encodenow returns(string, error)and validates encoding and payload length; removedEncodeValidated.- Moved custom request execution from
TelegramRequest.Do/DoWithContexttoAPI.Do/DoWithContext, and fromUploaderRequestmethods to the correspondingUploadermethods. - Renamed
ChatFullInfo.AvailableReactiontoAvailableReactions,ReplyParameters.QuoteParsingModetoQuoteParseMode, andInputChecklist.OtherCanAddTasks/OtherCanMarkTasksAsDonetoOthersCanAddTasks/OthersCanMarkTasksAsDone; JSON keys remain unchanged. - Removed
DeleteAllMessageReactionWithContext; useDeleteAllMessageReactionsWithContext. - The JSON and multipart send parameter structs listed above replace top-level
ReceiverUserIDandCallbackQueryIDwithEphemeralMessageParameters. UnmarshalRichMessagenow requires a non-nullblocksarray. Unknown rich objects use lossless raw wrappers instead of lossy text wrappers or errors.- Removed the unbounded
API.GetFileByLinkandGetFileByLinkWithContext; useGetFileByLinkLimit*with an explicit byte limit orOpenFileByLink*for streaming. - Non-positive inline-keyboard row limits are invalid by default; call
SetUnlimitedRowsto disable automatic wrapping explicitly.
Changed
- Prepared the declared version and user-agent metadata for
v2.0.0-rc.1. - Updated English and Russian README runner and keyboard examples for the final v2 contracts, and generalized the prerelease policy for the v2 RC cycle.
Fixed
- Fixed nested rich-text validation skipping children of formatting and link entities, which could bypass text-size and nesting limits.
Tests
- Migrated runner, poll-voter, keyboard, message-context, and wire-format tests to the new contracts.
- Added rich-button action round trips, malformed-input and nesting cases, row and callback boundaries, HTML escaping, compact tables, expandable quotations, document media, multipart attachments, draft-upload coverage, Bot API 10.3 wire fields, stopped-generation routing, strict root parsing, lossless unknown objects, bounded downloads, explicit unlimited rows, and compile-focused v1-to-v2 migration coverage.
What's Changed
Full Changelog: v1.2.0...v2.0.0-rc.1
Downloads
- Added Bot API 10.3 rich buttons: