Releases: InsanusMokrassar/ktgbotapi
Releases · InsanusMokrassar/ktgbotapi
0.30.11
Common
:Version
:MicroUtils
:0.4.11
->0.4.15
Klock
:2.0.1
->2.0.3
Ktor
:1.4.3
->1.5.0
Core
:- All bot actions got functions for short calling, like
recordVideo
forRecordVideoNote
- All bot actions got class-cast shortcuts
- All bot actions got functions for short calling, like
0.30.10
Common
:Version
:Kotlin
:1.4.20
->1.4.21
Klock
:2.0.0
->2.0.1
Ktor
:1.4.2
->1.4.3
MicroUtils
:0.4.6
->0.4.11
API Extensions
:- New function
buildBot
- New function
0.30.9
Common
:Version
:UUID
:0.2.2
->0.2.3
Coroutines
:1.4.1
->1.4.2
MicroUtils
:0.4.3
->0.4.6
Core
:- Add
BowlingDiceAnimationType
- Add
0.30.8
Common
:Version
:Kotlin
:1.4.10
->1.4.20
Klock
:1.12.1
->2.0.0
MicroUtils
:0.4.1
->0.4.3
0.30.7
Common
:Version
:MicroUtils
:0.4.0
->0.4.1
Core
:TelegramAPIUrlsKeeper
will fix ending of host url since this version- New mechanisms in
PowLimiter
andCommonLimiter
has been added - New builder
KtorRequestsExecutorBuilder
- New function
telegramBot
- New function
Utils
:- Simple function
telegramBot(TelegramAPIUrlsKeeper)
has been deprecated with replacement by almost the same
function inCore
- Simple function
0.30.6
Core
TextSource
properties has been renamed:asMarkdownSource
->markdown
asMarkdownV2Source
->markdownV2
asHtmlSource
->html
PrivateChat
overrideid
property with typeUserId
- Several new extensions and functions in links creation:
- New function
makeUsernameLink
with parameterString
- New extension
Username#link
and functionmakeLink(Username)
- New extension
- Function
makeLinkToMessage
now able to get any type of chat- New extension
Message#link
- New extension
- Old functions
makeLinkToAddStickerSet...
has been deprecated:makeLinkToAddStickerSet
makeLinkToAddStickerSetInMarkdownV2
makeLinkToAddStickerSetInMarkdown
makeLinkToAddStickerSetInHtml
- New function
0.30.5
Common
:Version
:MicroUtils
:0.3.3
->0.4.0
Core
:- Mechanism of
ChatMember
serialization has been changed- Since this version any
ChatMember
can be serialized (even outside in case it marked by@Serializable
) - Since this version any
ChatMember
(included in this project) can be deserialized in common way
- Since this version any
User
propertyid
has changed its type: now it isUserId
(under the hood it is the same asChatId
)
- Mechanism of
0.30.4
Common
:Version
:MicroUtils
:0.3.1
->0.3.3
Core
:MultilevelTextSource#textSources
has been safely renamed tosubsources
TextContent#fullEntitiesList
has been deprecated- Now
TextContent
implementsTextedInput
TextContent#entities
has been deprecated
GroupEventMessage
now overrideschatEvent
with typeGroupEvent
SupergroupEventMessage
now overrideschatEvent
with typeSupergroupEvent
- Any
ChatEventMessage
now have generic type of itschatEvent
(just like messages)
Utils
:- Old extensions related to chat events are deprecated:
Flow<ChatEventMessage<*>>#divideBySource
Flow<ChatEventMessage<*>>#onlyChannelEvents
Flow<ChatEventMessage<*>>#onlyGroupEvents
Flow<ChatEventMessage<*>>#onlySupergroupEvents
- A lot of extensions for
Flow<ChatEventMessage>
has been added:FlowsUpdatesFilter#events
FlowsUpdatesFilter#channelEvents
FlowsUpdatesFilter#groupEvents
FlowsUpdatesFilter#supergroupEvents
- And a lot of other filters with specific types
- Old extensions related to chat events are deprecated:
0.30.3
Common
:Version
:MicroUtils
:0.3.0
->0.3.1
Core
:- New type of requests exceptions
TooMuchRequestsException
. In fact it will be rare case when you will get this
exception EmptyLimiter
has been renamed toExceptionsOnlyLimiter
and currently will stop requests after
TooMuchRequestsException
happen until retry time is actual- Now
ExceptionsOnlyLimiter
(previouslyEmptyLimiter
) is a class
- Now
AbstractRequestCallFactory
currently will not look at the response and wait if it haveRetryAfter
error. New
behaviour aimed on delegating of this work toRequestsLimiter
- New type of requests exceptions
0.30.2
Common
:Version
:Ktor
:1.4.1
->1.4.2
Core
:- New sealed class
SetWebhookRequest
which can be used inSetWebhook
requests
- New sealed class
Utils
:- Extensions
setWebhookInfoAndStartListenWebhooks
has been united in one extension withSetWebhookRequest
incoming parameter
- Extensions