1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-04-16 23:12:33 +00:00

refill changelog

This commit is contained in:
2026-04-16 13:05:29 +06:00
parent 83de9fd973
commit 96a5508e9a

View File

@@ -7,49 +7,51 @@
**THIS UPDATE CONTAINS BREAKING CHANGES** **THIS UPDATE CONTAINS BREAKING CHANGES**
* `Core`: * `Core`:
* **BREAKING CHANGE** `PollOption` reimplemented as a sealed interface hierarchy: * **THIS IS BREAKING CHANGE** `MultipleAnswersPoll` removed; `RegularPoll` now directly implements `Poll`
* `PollOption.Simple` replaces `SimplePollOption` * **THIS IS BREAKING CHANGE** `allowMultipleAnswers` renamed to `allowsMultipleAnswers` across poll types and requests
* `PollOption.LatelyAdded` sealed interface added with `AddedByUser` and `AddedByChat` variants * **THIS IS BREAKING CHANGE** `QuizPoll.correctOptionId: Int?` changed to `correctOptionIds: List<Int>?`
* `PollOption` now has `id: PollOptionPersistentId` field * **THIS IS BREAKING CHANGE** `PollOption` is now a sealed interface with `PollOption.Simple` and `PollOption.LatelyAdded` subtypes; `SimplePollOption` removed
* **BREAKING CHANGE** `QuizPoll.correctOptionId` replaced with `correctOptionIds: List<Int>` (multiple correct options support) * **THIS IS BREAKING CHANGE** `PollAnswer.Anonymous.voterChat` type changed from `ChannelChat` to `PreviewPublicChat`
* **BREAKING CHANGE** `PollAnswer.Anonymous.voterChat` type changed from `ChannelChat` to `PreviewPublicChat` * **THIS IS BREAKING CHANGE** `requestChannelReplyButton` (group variant) renamed to `requestGroupReplyButton`
* **BREAKING CHANGE** `SendPoll` and `SendRegularPoll` init checks no longer throw errors, warnings are logged instead * Added `BotToken` value class
* **BREAKING CHANGE** `requestChannelReplyButton` for groups renamed to `requestGroupReplyButton` * Added `SavePreparedKeyboardButton` request with `PreparedKeyboardButton` and `PreparedKeyboardButtonId` types
* **BREAKING CHANGE** `openPeriodPollSecondsLimit` changed from `5 .. 600` to `5 .. 2628000` * Added `GetManagedBotToken` and `ReplaceManagedBotToken` requests
* Added `KeyboardButtonRequestManagedBot` and `RequestManagedBotKeyboardButton`
* Added `ManagedBotCreated` chat event and `ManagedBotUpdated` type with `ManagedBotUpdate`
* Added `PollOptionPersistentId` value class * Added `PollOptionPersistentId` value class
* Added `PollOptionAdded` and `PollOptionDeleted` chat events * Added `PollOptionAdded` and `PollOptionDeleted` chat events
* Added `pollOptionId` support in `ReplyParameters` (`reply_to_poll_option_id`)
* Added `canManageBots` to `ExtendedBot`
* Added `allowsRevoting`, `shuffleOptions`, `allowAddingOptions`, `hideResultsUntilCloses`, `description`/`descriptionTextSources` to poll types and send requests
* Added `chosenPersistentIds` to `PollAnswer` * Added `chosenPersistentIds` to `PollAnswer`
* Added `pollOptionId` support in `ReplyParameters` and `ReplyInfo` (`reply_to_poll_option_id`) * Added `UsernameAtLessSerializer`
* Added `allowsRevoting`, `shuffleOptions`, `hideResultsUntilCloses` fields to `SendRegularPoll` and `SendQuizPoll` * Extended `openPeriodPollSecondsLimit` from `5..600` to `5..2628000`
* Added `allowAddingOptions` field to `SendRegularPoll` * Fixed quiz poll serialization type (was incorrectly using `regularPollType` in quiz branch)
* Added `description`, `descriptionParseMode`, `descriptionTextSources` fields to `SendQuizPoll` and `SendRegularPoll` * Fixed quiz poll explanation serialization (now correctly uses `explanation`/`explanationTextSources`)
* Added `allowsMultipleAnswers` field to `SendQuizPoll` * Fixed `SendQuizPoll` correct option index range validation (off-by-one)
* Added `openPeriod` and `closeDate` parameters to `SendPoll` function * Several poll validation checks changed from throwing exceptions to logging warnings
* Added `ManagedBotCreated` and `ManagedBotUpdated` chat events
* Added `ManagedBotUpdate` update type and `UPDATE_MANAGED_BOT` constant
* Added `GetManagedBotToken` and `ReplaceManagedBotToken` requests
* Added `BotToken` value class
* Added `KeyboardButtonRequestManagedBot` and `RequestManagedBotKeyboardButton`
* Added `requestManagedBotReplyButton` shortcuts
* Added `SavePreparedKeyboardButton` request
* Added `PreparedKeyboardButton` and `PreparedKeyboardButtonId` types
* Added `canManageBots` field to `ExtendedBot`
* Added `managedBotNewBotUsername` constant
* `API`: * `API`:
* Added `savePreparedKeyboardButton` extensions * Added `savePreparedKeyboardButton` extensions
* Added `getManagedBotToken` and `replaceManagedBotToken` extensions * Added `getManagedBotToken` and `replaceManagedBotToken` extensions
* Added optional `pollOptionId` parameter to `reply`/`replyWith*` extensions
* Updated `sendQuizPoll` extensions with `correctOptionIds`, `allowsMultipleAnswers`, `allowsRevoting`, `shuffleOptions`, `hideResultsUntilCloses`, `description` parameters
* Updated `sendRegularPoll` extensions with `allowsRevoting`, `shuffleOptions`, `allowAddingOptions`, `hideResultsUntilCloses`, `description` parameters
* `BehaviourBuilder`: * `BehaviourBuilder`:
* Added event triggers: `onManagedBotCreated`, `onManagedBotUpdated`, `onPollOptionAdded`, `onPollOptionDeleted` * Added `onManagedBotCreated` and `onManagedBotUpdated` triggers
* Added `onManagedBotUpdate` trigger for `ManagedBotUpdated` updates * Added `onPollOptionAdded` and `onPollOptionDeleted` triggers
* Added `waitManagedBotCreatedEvents`, `waitManagedBotUpdatedEvents`, `waitPollOptionAddedEvents`, `waitPollOptionDeletedEvents` expectations * Added `waitManagedBotCreatedEvents` and `waitManagedBotUpdated` expectations
* Added `waitManagedBotUpdated` expectation * Added `waitPollOptionAddedEvents` and `waitPollOptionDeletedEvents` expectations
* Added `ManagedBotUpdatedFilterByUser` and `ByUserManagedBotUpdatedMarkerFactory` * Added `ManagedBotUpdatedFilterByUser` and `ByUserManagedBotUpdatedMarkerFactory`
* `Utils`: * `Utils`:
* Added `managedBotCreationLink` functions for building managed bot creation links * Added `managedBotCreationLink` formatting extensions
* Added `requestManagedBotButton` extensions to `ReplyKeyboardRowBuilder` * Added `requestManagedBotButton` to `ReplyKeyboardBuilder`
* Added class casts for `ManagedBotUpdate`, `ManagedBotCreated`, `PollOptionAdded`, `PollOptionDeleted`
* Removed `MultipleAnswersPoll` class casts
* Updated raw poll accessors to match new model (`allowsMultipleAnswers`, `correctOptionIds`, `explanation`)
* Regenerated class casts extensions * Regenerated class casts extensions
* `WebApps`: * `WebApps`:
* Added `requestChat` method to `WebApp` * Added `requestChat` support for `PreparedKeyboardButtonId`
* Fixed `iconCustomEmojiId` passing in `BottomButton`
## 32.0.0 ## 32.0.0