Releases: InsanusMokrassar/ktgbotapi
Releases · InsanusMokrassar/ktgbotapi
1.0.1
Versions
:Serialization
:1.3.2
->1.3.3
MicroUtils
:0.10.3
->0.10.4
1.0.0
All the tgbotapi.extensions.*
packages have been removed
Versions
:Kotlin
:1.6.10
->1.6.21
Ktor
:1.6.8
->2.0.1
MicroUtils
:0.9.24
->0.10.3
Core
:Ktor
package renamed. Migration:dev.inmo.tgbotapi.bot.Ktor
->dev.inmo.tgbotapi.bot.ktor
CallbackQuery
package renamed. Migration:dev.inmo.tgbotapi.types.CallbackQuery([\s\\.])
->dev.inmo.tgbotapi.types.queries.callback$1
ChatMember
package renamed. Migration:dev.inmo.tgbotapi.types.ChatMember([\s\\.])
->dev.inmo.tgbotapi.types.chat.member$1
ChatAdministratorRightsImpl
replaced. Migration:dev.inmo.tgbotapi.types.ChatAdministratorRightsImpl
->dev.inmo.tgbotapi.types.chat.member.ChatAdministratorRightsImpl
chat.abstract.extended
replaced. Migration:dev.inmo.tgbotapi.types.chat.abstract.extended
->dev.inmo.tgbotapi.types.chat.member.chat
chat.abstract
replaced. Migration:dev.inmo.tgbotapi.types.chat.abstract
->dev.inmo.tgbotapi.types.chat.member.chat
chat.extended
replaced. Migration:dev.inmo.tgbotapi.types.chat.extended
->dev.inmo.tgbotapi.types.chat.member.chat
- User interfaces have been fully replaced:
dev.inmo.tgbotapi.types.User
->dev.inmo.tgbotapi.types.chat.User
dev.inmo.tgbotapi.types.CommonUser
->dev.inmo.tgbotapi.types.chat.CommonUser
dev.inmo.tgbotapi.types.ExtendedUser
->dev.inmo.tgbotapi.types.chat.ExtendedUser
dev.inmo.tgbotapi.types.Bot
->dev.inmo.tgbotapi.types.chat.Bot
dev.inmo.tgbotapi.types.CommonBot
->dev.inmo.tgbotapi.types.chat.CommonBot
dev.inmo.tgbotapi.types.ExtendedBot
->dev.inmo.tgbotapi.types.chat.ExtendedBot
dev.inmo.tgbotapi.types.UserSerializer
->dev.inmo.tgbotapi.types.chat.UserSerializer
- All
InputMedia
has been renamed asTelegramMedia
. Migration:InputMedia
->TelegramMedia
dev.inmo.tgbotapi.types.InputMedia
->dev.inmo.tgbotapi.types.media
- Replaces of
MessageContent
. Migrations:dev.inmo.tgbotapi.types.message.content.abstracts
->dev.inmo.tgbotapi.types.message.content
dev.inmo.tgbotapi.types.message.content.media
->dev.inmo.tgbotapi.types.message.content
- Replaces of
TextSource
s. Migrations:dev.inmo.tgbotapi.types.MessageEntity.textsources
->dev.inmo.tgbotapi.types.message.textsources
- Replaces of
ParseMode
s. Migrations:dev.inmo.tgbotapi.types.ParseMode
->dev.inmo.tgbotapi.types.message
- Replaces of
MediaGroupUpdate
s. Migrations:dev.inmo.tgbotapi.types.update.MediaGroupUpdates
->dev.inmo.tgbotapi.types.update.media_group
InvoiceContent
has been replaced:dev.inmo.tgbotapi.types.message.payments.InvoiceContent
->dev.inmo.tgbotapi.types.message.content.InvoiceContent
PossiblySentViaBotCommonMessage
has been replaced:dev.inmo.tgbotapi.types.message.content.abstracts.PossiblySentViaBotCommonMessage
->dev.inmo.tgbotapi.types.message.abstracts.PossiblySentViaBotCommonMessage
- Edit live location requests have been replaced:
dev.inmo.tgbotapi.requests.edit.LiveLocation
->dev.inmo.tgbotapi.requests.edit.location.live
dev.inmo.tgbotapi.extensions.api.edit.LiveLocation
->dev.inmo.tgbotapi.extensions.api.edit.location.live
- Edit reply markup requests have been replaced:
dev.inmo.tgbotapi.requests.edit.ReplyMarkup
->dev.inmo.tgbotapi.requests.edit.reply_markup
dev.inmo.tgbotapi.extensions.api.edit.ReplyMarkup
->dev.inmo.tgbotapi.extensions.api.edit.reply_markup
- Common abstracts have been replaced:
dev.inmo.tgbotapi.CommonAbstracts
->dev.inmo.tgbotapi.abstracts
- Constructor of
UnknownInlineKeyboardButton
is not internal and can be created with anyjson
(#563) - All the interfaces from
dev.inmo.tgbotapi.types.files.abstracts
have been replaced todev.inmo.tgbotapi.types.files
and converted to sealed (#550) PassportFile
has been replaced todev.inmo.tgbotapi.types.files
StorageFile
has been deprecated (fix of #556)MultipartFile
do not requireStorageFile
anymoreInputFile
companion got functions to simplify creation ofInputFile
s- New typealias
FileUrl
(representsFileId
but declare that they are the same)
BehaviourBuilder
:SimpleFilter
now is afun interface
instead of just callback (fix of #546)- New extension
BehaviourContext#createSubContext
. It uses separatedAccumulatorFlow
and will retrieve updates by itself - New extension
BehaviourContext#doInContext
- Extension
BehaviourContext#doInSubContextWithUpdatesFilter
has been renamed toBehaviourContext#createSubContextAndDoWithUpdatesFilter
- Extension
BehaviourContext#doInSubContext
has been deprecated
BehaviourContextWithFSM
:launchStateHandling
lost its parametercontextUpdatesFlow: Flow
handleState
ofBehaviourContextWithFSM
now will get/create sub context for the state and launch handling in itBehaviourWithFSMStateHandler
now extendsStatesHandler
BehaviourWithFSMStateHandlerHolder
now extendsCheckableHandlerHolder
andBehaviourWithFSMStateHandler
- Function
checkHandleable
ofBehaviourWithFSMStateHandlerHolder
now issuspend
- Function
0.38.23
0.38.22
Core
:- New constant
tgWebAppStartParamField
- All keyboards builders and rows blocks becomes not crossinline
- New constant
0.38.21
WebApps
:WebAppInitData#queryId
now have correct js name of field- New function
sendDataOrWorkWithQueryId
0.38.20
BehaviourBuilder FSM
:- Hotfixes
WebApps
:- New extension
TelegramBot#answerWebAppQuery
- New function
handleResult
- New extension
0.38.19
BehaviourBuilder
:- Hotfixes
BehaviourBuilder FSM
:BehaviourContextWithFSMBuilder
deprecated in favor toBehaviourContextWithFSM
- Now it is possible to define additional handlers in subcontexts of
BehaviourBuilderWithFSM
0.38.18
0.38.17
0.38.16
Core
:TelegramAPIUrlsKeeper
now have two new things: propertieswebAppDataSecretKey
and funcheckWebAppLink