TelegramBotAPI v0.27.0 Release Notes
-
Common
:- Versions updates:
Kotlin
:1.3.71
->1.3.72
Klock
:1.10.3
->1.10.5
- Versions updates:
TelegramBotAPI
:- Typealias
LongSeconds
was added for correct explanation of seconds inLong
primitive type - Several new fields was added:
explanationField
explanationEntitiesField
openPeriodField
closeDateField
- Extension
List<TextPart>#justTextSources
was added for mapping ofList<TextPart>
toList<TextSource>
- Field
SendPoll#closeInfo
was added- Range
openPeriodPollSecondsLimit
was added and used in allSendPoll
requests for checking income data
- Range
SendQuizPoll
now able to use fieldscaption
andparseMode
forexplanation
functionalityquizPollExplanationLimit
was added for checkingQuizPoll
explanation size
- Field
TextLinkTextSource#url
was added - Field
TextMentionTextSource#user
was added - Sealed class
ScheduledCloseInfo
was added- Class
ExactScheduledCloseInfo
was added for cases withclose_date
- Class
ApproximateScheduledCloseInfo
was added for cases withopen_period
- Class
- Field
Poll#scheduledCloseInfo
was added - Sealed class
MultipleAnswersPoll
was added- Class
RegularPoll
now extendsMultipleAnswersPoll
- Class
Dice
class was replaced into new package- Sealed class
DiceAnimationType
was added- Field
Dice#animationType
was added asemoji
API representation SendDice
now receiveanimationType
as second parameter
- Field
- For
List<TextSource>
was added several extensions:toMarkdownCaptions
toMarkdownTexts
toMarkdownV2Captions
toMarkdownV2Texts
toHtmlCaptions
toHtmlTexts
- Typealias
TelegramBotAPI-extensions-api
:- All
RequestsExecutor#sendDice
extensions now acceptDiceAnimationType?
as second parameter - All
RequestsExecutor#sendRegularPoll
extensions now acceptScheduledCloseInfo
fourth parameter - All
RequestsExecutor#sendQuizPoll
extensions now accept additional parameterscaption: String
andparseMode: ParseMode
forexplanation
functionality andcloseInfo: ScheduledCloseInfo?
for autoclose poll functionality
- All
TelegramBotAPI-extensions-utils
:- Several shortcuts for
ScheduledCloseInfo
was added:closePollExactAt
closePollExactAfter
closePollAfter
- Several shortcuts for