Skip to content

Releases: InsanusMokrassar/ktgbotapi

1.0.1

12 May 19:03
Compare
Choose a tag to compare
  • Versions:
    • Serialization: 1.3.2 -> 1.3.3
    • MicroUtils: 0.10.3 -> 0.10.4

1.0.0

11 May 18:14
Compare
Choose a tag to compare

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 as TelegramMedia. 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 TextSources. Migrations: dev.inmo.tgbotapi.types.MessageEntity.textsources -> dev.inmo.tgbotapi.types.message.textsources
    • Replaces of ParseModes. Migrations: dev.inmo.tgbotapi.types.ParseMode -> dev.inmo.tgbotapi.types.message
    • Replaces of MediaGroupUpdates. 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 any json (#563)
    • All the interfaces from dev.inmo.tgbotapi.types.files.abstracts have been replaced to dev.inmo.tgbotapi.types.files and converted to sealed (#550)
    • PassportFile has been replaced to dev.inmo.tgbotapi.types.files
    • StorageFile has been deprecated (fix of #556)
      • MultipartFile do not require StorageFile anymore
      • InputFile companion got functions to simplify creation of InputFiles
      • New typealias FileUrl (represents FileId but declare that they are the same)
  • BehaviourBuilder:
    • SimpleFilter now is a fun interface instead of just callback (fix of #546)
    • New extension BehaviourContext#createSubContext. It uses separated AccumulatorFlow and will retrieve updates by itself
    • New extension BehaviourContext#doInContext
    • Extension BehaviourContext#doInSubContextWithUpdatesFilter has been renamed to BehaviourContext#createSubContextAndDoWithUpdatesFilter
    • Extension BehaviourContext#doInSubContext has been deprecated
  • BehaviourContextWithFSM:
    • launchStateHandling lost its parameter contextUpdatesFlow: Flow
    • handleState of BehaviourContextWithFSM now will get/create sub context for the state and launch handling in it
    • BehaviourWithFSMStateHandler now extends StatesHandler
    • BehaviourWithFSMStateHandlerHolder now extends CheckableHandlerHolder and BehaviourWithFSMStateHandler
      • Function checkHandleable of BehaviourWithFSMStateHandlerHolder now is suspend

0.38.23

07 May 18:46
Compare
Choose a tag to compare
  • BehaviourHandler:
    • Add support of fallback triggers (fix of #560)

0.38.22

05 May 08:49
Compare
Choose a tag to compare
  • Core:
    • New constant tgWebAppStartParamField
    • All keyboards builders and rows blocks becomes not crossinline

0.38.21

04 May 07:48
Compare
Choose a tag to compare
  • WebApps:
    • WebAppInitData#queryId now have correct js name of field
    • New function sendDataOrWorkWithQueryId

0.38.20

04 May 05:24
Compare
Choose a tag to compare
  • BehaviourBuilder FSM:
    • Hotfixes
  • WebApps:
    • New extension TelegramBot#answerWebAppQuery
    • New function handleResult

0.38.19

03 May 08:51
Compare
Choose a tag to compare
  • BehaviourBuilder:
    • Hotfixes
  • BehaviourBuilder FSM:
    • BehaviourContextWithFSMBuilder deprecated in favor to BehaviourContextWithFSM
    • Now it is possible to define additional handlers in subcontexts of BehaviourBuilderWithFSM

0.38.18

02 May 08:03
Compare
Choose a tag to compare
  • Core:
    • Add support of test servers (fix of #577)
  • BehaviourBuilder:
    • Fixes in extension BehaviourContext#doInSubContextWithUpdatesFilter (thanks to xzima)

0.38.17

01 May 11:37
Compare
Choose a tag to compare
  • Core:
    • Add BotCommandScopeChat as new BotCommandScope (fix of #574)
    • BotCommandScope companion got several properties and functions for more useful scope creation

0.38.16

29 Apr 17:43
Compare
Choose a tag to compare
  • Core:
    • TelegramAPIUrlsKeeper now have two new things: properties webAppDataSecretKey and fun checkWebAppLink