Releases: InsanusMokrassar/ktgbotapi
Releases · InsanusMokrassar/ktgbotapi
0.29.4
Core
:diceResultLimit
now is deprecated, usecommonDiceResultLimit
instead- New extension
slotMachineDiceResultLimit
Utils
:- New enum
SlotMachineReelImages
- New extension
Int#asSlotMachineReelImage
- New data class
SlotMachineResult
- New extension
Dice#calculateSlotMachineResult
- New extension
- New enum
0.29.3
Common
:- Version updates:
Serialization
:1.0.0
->1.0.1
- Version updates:
Core
:- New annotation
RiskFeature
. This annotation will be applied to the things which contains unsafe types usageSendMediaGroup
factory now marked withRiskFeature
- Media groups updates:
- New functions
SendPlaylist
- New functions
SendDocumentsGroup
- New functions
SendVisualMediaGroup
- New functions
- New type
VisualMediaGroupMemberInputMedia : MediaGroupMemberInputMedia
InputMediaPhoto
now implementsVisualMediaGroupMemberInputMedia
instead ofMediaGroupMemberInputMedia
InputMediaVideo
now implementsVisualMediaGroupMemberInputMedia
instead ofMediaGroupMemberInputMedia
- New type
VisualMediaGroupContent : MediaGroupContent
PhotoContent
now implementsVisualMediaGroupContent
instead ofMediaGroupContent
VideoContent
now implementsVisualMediaGroupContent
instead ofMediaGroupContent
- New type
AudioMediaGroupContent : MediaGroupContent
AudioContent
now implementsAudioMediaGroupContent
instead ofMediaContent
andCaptionedInput
- New type
DocumentMediaGroupContent : MediaGroupContent
DocumentContent
now implementsDocumentMediaGroupContent
instead ofMediaContent
andCaptionedInput
- New type
AudioMediaGroupMemberInputMedia : MediaGroupMemberInputMedia
InputMediaAudio
now implementsAudioMediaGroupMemberInputMedia
- New type
DocumentMediaGroupMemberInputMedia : MediaGroupMemberInputMedia
InputMediaDocument
now implementsDocumentMediaGroupMemberInputMedia
- New extension
AudioFile#toInputMediaAudio
AudioContent
now implementsMediaGroupContent
- New extension
DocumentFile#toInputMediaDocument
DocumentContent
now implementsMediaGroupContent
- New dice type
SlotMachineDiceAnimationType
- New extension
TelegramMediaFile#asDocumentFile
- New extension
VideoFile#toInputMediaVideo
- New exception
WrongFileIdentifierException
- Extension
String#toInputMediaFileAttachmentName
now is deprecated - Property
ThumbedInputMedia#thumbMedia
now is deprecated
- New annotation
API
:- New extensions for media groups:
TelegramBot#sendPlaylist
TelegramBot#replyWithPlaylist
TelegramBot#sendDocumentsGroup
TelegramBot#replyWithDocumentsGroup
TelegramBot#sendVisualMediaGroup
TelegramBot#replyWithVisualMediaGroup
- New extensions for media groups:
Utils
:- New extensions for
Flow
s:Flow<SentMediaGroupUpdate>#mediaGroupVisualMessages
Flow<SentMediaGroupUpdate>#mediaGroupAudioMessages
Flow<SentMediaGroupUpdate>#mediaGroupDocumentMessages
- New extensions for
FlowsUpdatesFilter
:FlowsUpdatesFilter#audioMessagesWithMediaGroups
FlowsUpdatesFilter#mediaGroupAudioMessages
FlowsUpdatesFilter#documentMessagesWithMediaGroups
FlowsUpdatesFilter#mediaGroupDocumentMessages
FlowsUpdatesFilter#mediaGroupVisualMessages
- New extensions for
0.29.2
Common
:- Version updates:
Coroutines
:1.3.9
->1.4.0
- Internal broadcast channels were replaced with
SharedFlow
- Version updates:
TelegramBotAPI-extensions-utils
:- Extension
ReceiveChannel#debounceByValue
has been deprecated
- Extension
0.29.1
Common
:- Version updates:
Serialization
:1.0.0-RC2
->1.0.0
- Version updates:
0.29.0
-
THIS VERSION CONTAINS BREAKING CHANGES
-
PROJECT PACKAGES WERE CHANGED
- Packages in the whole project were changed
com.github.insanusmokrassar.TelegramBotAPI
->dev.inmo.tgbotapi
- Project group in repositories were changed:
com.github.insanusmokrassar
->dev.inmo
- Migration (Examples migration):
- Change implementation in your gradle files:
implementation "com.github.insanusmokrassar:TelegramBotAPI-core:*"
->implementation "dev.inmo:tgbotapi.core:*"
implementation "com.github.insanusmokrassar:TelegramBotAPI-extensions-utils:*"
->implementation "dev.inmo:tgbotapi.extensions.utils:*"
implementation "com.github.insanusmokrassar:TelegramBotAPI-extensions-api:*"
->implementation "dev.inmo:tgbotapi.extensions.api:*"
implementation "com.github.insanusmokrassar:TelegramBotAPI:*"
->implementation "dev.inmo:tgbotapi:*"
- Replace packages
com.github.insanusmokrassar.TelegramBotAPI
in the whole project bydev.inmo.tgbotapi
- Change implementation in your gradle files:
- Packages in the whole project were changed
-
TelegramBotAPI-core
:- Now in forward info you can get
ForwardFromSupergroupInfo
- BREAKING CHANGE
SendVoice
factory function has changed its signature: now it have nowthumb
(according to the documentation) AudioFile
now can be converted toVoiceFile
VoiceFile
now can be converted toAudioFile
- Now in forward info you can get
-
TelegramBotAPI-extensions-api
:- ALL REQUESTS EXECUTOR USAGES WERE REPLACED WITH
TelegramBot
TYPEALIAS. It should not bring any break changes - Internal changes of
sendRegularPoll
andsendQuizPoll
extensions - Variable
defaultLivePeriodDelayMillis
now is public - All
send
extensions forTelegramBot
got theirreply
variations (issue #144) - A lot of
send
extensions forTelegramBot
got their variation withChat
instead ofChatIdentifier
- ALL REQUESTS EXECUTOR USAGES WERE REPLACED WITH
0.28.4
Common
:- Version updates:
Ktor
:1.4.0
->1.4.1
- Version updates:
TelegramBotAPI-core
TelegramBotAPI-extensions-utils
- Extensions
Flow<ChatEventMessage>#onlyGroupEvents
andFlow<ChatEventMessage>#onlySupergroupEvents
now returns
CommonGroupEventMessage
andCommonSupergroupEventMessage
- Extensions
0.28.3
- Common:
- Version updates:
Klock
:0.12.0
->0.12.1
Kotlin serialization
:1.0.0-RC
->1.0.0-RC2
(dependencykotlinx-serialization-core
was replaced with
kotlinx-serialization-json
due to kotlinx.serialization library update)
- Version updates:
TelegramBotAPI-core
:- All
InlineQueryResult
has changed their type of id for more obvious relation betweenInlineQueryResult#id
and
ChosenInlineResult#resultId
:String
->InlineQueryIdentifier
- All
TelegramBotAPI-extensions-utils
:- Several extensions for updates flows based on
InlineQueryUpdate
has been added:Flow<InlineQueryUpdate>#onlyBaseInlineQueriesWithUpdates
Flow<InlineQueryUpdate>#onlyBaseInlineQueries
Flow<InlineQueryUpdate>#onlyLocationInlineQueriesWithUpdates
Flow<InlineQueryUpdate>#onlyLocationInlineQueries
- Several extensions for updates flows based on
ChosenInlineResultUpdate
has been added:Flow<ChosenInlineResultUpdate>.onlyBaseChosenInlineResultsWithUpdates
Flow<ChosenInlineResultUpdate>.onlyBaseChosenInlineResults
Flow<ChosenInlineResultUpdate>.onlyLocationChosenInlineResultsWithUpdates
Flow<ChosenInlineResultUpdate>.onlyLocationChosenInlineResults
- Several extensions for updates flows based on