Skip to content

Releases: vendelieu/telegram-bot

5.0.2

07 Mar 21:16
Compare
Choose a tag to compare
  • Fix ksp processor for regex handlers. #106
  • Fix ksp processor InputHandler and RegexHandler RateLimits collecting.

5.0.1

06 Mar 02:50
Compare
Choose a tag to compare
  • Changed internal modifier for context {} config section. #103
  • Fixed annotation processing error in ksp processor for non-jvm targets.
  • Added basic ClassManager for Kotlin Native target.

5.0.0

02 Mar 00:41
6b58266
Compare
Choose a tag to compare
  • 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

23 Jan 18:06
Compare
Choose a tag to compare
  • Fix coroutines space overconsumption bug.

4.3.0

19 Jan 20:13
23401c5
Compare
Choose a tag to compare
  • Changed naming of internal components.
    • Action (annotated entities) is now Activity, not to be confused with actions that form requests.
    • ManualHandling > FunctionalHandling - for better understanding.
  • Added shortcut to onFailure method on Deferred, 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,
    see updatesListener 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 to Int, as it better represents the data.
  • The base scope of commands for friendliness towards beginners and better understanding has been
    changed to just UpdateType.Message. In other words, by default, it will have similar behavior to other types of libraries.

4.2.1

08 Jan 16:34
59cb4f7
Compare
Choose a tag to compare
  • 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

05 Jan 17:54
2538b42
Compare
Choose a tag to compare
  • Added send method for Chat to Action<>.
  • Changed ambiguous for User/Chat
    names: MessageOrigin (User > UserOrigin, Chat > ChatOrigin), BotCommandScope.Chat > BotCommandScope.ChatScope.
  • Enhanced linkPreviewOptions: Introduced disableWebPagePreview() for easier disabling, and linkPreviewOptions{}
    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 in sendAsync methods process.
  • Add getOrNull() method for Deferred<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 enum LogLvl since logback it's not transitive more.

4.1.0

30 Dec 21:40
f7d503f
Compare
Choose a tag to compare
  • 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 and Duration when it's period.
  • Changed structure of caughtExceptions event from Pair to FailedUpdate.
  • Changed logback, coroutines from api-dependency to implementation-dependency (ie not transitive now).
  • Covered Telegram API 7.0 version.

4.0.1

25 Dec 10:15
Compare
Choose a tag to compare
  • Fix parsing annotations bug when parameters not well-ordered.

4.0.0

24 Dec 17:49
e778afe
Compare
Choose a tag to compare
  • Added the ability to collect actions in compile time.
  • Improved support of input chains in annotation mode.
  • Added support for all scopes for commands.
  • Improved signature of copyMessage, forwardMessage, banChatSenderChat, unbanChatSenderChat methods.