Releases: vendelieu/telegram-bot
Releases · vendelieu/telegram-bot
5.0.2
5.0.1
5.0.0
- Moved the library to kotlin multiplatform with
jvm
/js
/native
goals. Experimental at the moment. - Serialization library replaced with
kotlinx-serialization
. - Logging utility changed.
- Added webapp module.
- Moved message-related methods to a separate package (your imports could be broken).
- Covered 7.1 Telegram Api version.
4.3.1
4.3.0
- Changed naming of internal components.
Action
(annotated entities) is nowActivity
, not to be confused with actions that form requests.ManualHandling
>FunctionalHandling
- for better understanding.
- Added shortcut to
onFailure
method onDeferred
, for consistency of approach. - Added logging of the
Activity
list during the initialization phase. - Internal structure of
FunctionalHandling
has been improved. - Improved flow of coroutines in long polling mode, added request timeout in configuration,
seeupdatesListener
block in configuration. - Retry processing in the client has been improved, so it doesn't repeat all requests (e.g. 400 status),
only the necessary ones. - The type of the parameter
messageThreadId
has been changed toInt
, as it better represents the data. - The base scope of commands for friendliness towards beginners and better understanding has been
changed to justUpdateType.Message
. In other words, by default, it will have similar behavior to other types of libraries.
4.2.1
- Removed unnecessary
bot.addAutowiringObject
method. - Enhanced
userData
/chatData
get method with generic wrapped with catching for safety. - Added
allowedUpdates
for long-polling since it necessary for getting special type updates. - Fixed
giveawayMessageId
type:Int
>Long
. - Added
replyParameters(messageId, block: ReplyParameters.() -> Unit)
fun-shortcut for changing replyParameters. - Optimized action internal type inference.
4.2.0
- Added
send
method forChat
toAction<>
. - Changed ambiguous for
User
/Chat
names:MessageOrigin
(User
>UserOrigin
,Chat
>ChatOrigin
),BotCommandScope.Chat
>BotCommandScope.ChatScope
. - Enhanced
linkPreviewOptions
: IntroduceddisableWebPagePreview()
for easier disabling, andlinkPreviewOptions{}
for setting through lambda. - Improved sealed class structure for better accessibility to general
parameters (MaybeInaccessibleMessage
,MessageOrigin
,ChatBoostSource
,ChatMember
). - Removed ReflectionHandler as CodegenHandler has proven effective.
- Changed long-polling handling, separated updates collecting and handling.
- Returned
coroutines
dependency as transitive, since it make inconvenience insendAsync
methods process. - Add
getOrNull()
method forDeferred<Response<T>>
to lower verbosity for handling. - Set default names for media methods using ByteArray and File to prevent incorrect API behavior when unset.
- Changed
botLogLevel
type to new proxy enumLogLvl
sincelogback
it's not transitive more.
4.1.0
- Added shortcut annotation for
CallbackQuery
handling >@CommandHandler.CallbackQuery
(or you can import it and use
without prefix). - Changed all date fields that represent timestamp to
Instant
andDuration
when it's period. - Changed structure of
caughtExceptions
event fromPair
toFailedUpdate
. - Changed
logback
,coroutines
from api-dependency to implementation-dependency (ie not transitive now). - Covered Telegram API
7.0
version.