Skip to content

Releases: kotlin-telegram-bot/kotlin-telegram-bot

6.1.0

22 May 23:06
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 6.0.7...6.1.0

6.0.7

10 May 22:49
6c7edba
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 6.0.6...6.0.7

6.0.6

10 Oct 22:20
eabd2ed
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 6.0.5...6.0.6

6.0.5

14 Aug 12:48
Compare
Choose a tag to compare

Improvements:

  • sendInvoice, deleteMessage, sendPoll, answerCallbackQuery, deleteChatSticker, setChatStickerSet and getChatMember migrate to TelegramBotResult

Fixes:

  • Potential fix for an issue with the bot not receiving updates after a certain amount of time running.

Features:

  • Added onlyIfBanned field to unbanChatMember operation.
  • Added logout operation.
  • Added allowSendingWithoutReply parameters to several operations.
  • Added sendGame operation.
  • Added stopPoll operation.

6.0.4

22 Feb 22:36
Compare
Choose a tag to compare

Improvements:

  • Extended the TelegramBotResult type. Added isSuccess, isError, getOrDefault, get and fold APIs.
  • setChatAdministratorCustomTitle method migrated to TelegramBotResult.
  • sendDice method migrated to TelegramBotResult.
  • setMyCommands method migrated to TelegramBotResult.
  • getMyCommands method migrated to TelegramBotResult.
  • answerInlineQuery method migrated to TelegramBotResult.
  • answerPrecheckoutQuery method migrated to TelegramBotResult.
  • answerShippingQuery method migrated to TelegramBotResult.

Fixes:

  • canSendOtherMessages field serialization in ChatPermissions class.
  • Catch all throwable in handlers' execution.

Features:

  • Support for sending audio and document albums.
  • bio, linkedChatId and location fields added to Chat class.
  • filename field added to Audio and Video classes.

6.0.3

14 Feb 20:32
0e4fe1c
Compare
Choose a tag to compare

Fixes:

  • Use a Long for the date field in Message class.

Features:

  • Bowling emoji for sendDice method.
  • copyMessage method.
  • messageId parameter added to unpinChatMessage method.
  • unpinAllChatMessages method.
  • senderChat and authorSignature fields added to Message class.
  • isAnonymous added to promoteChatMember method and ChatMember class.
  • ChatId class to represent a chat id or a channel usernames for api methods.

6.0.2

23 Jan 12:03
0e35dcb
Compare
Choose a tag to compare

Fixes:

  • Add missing parameters to the sendVoice operation #137
  • Changes to make execution ordering of updates handlers consistent across different updates #142

Features:

  • Updates are now consumable across update handlers execution #142

6.0.1

06 Dec 14:31
Compare
Choose a tag to compare

This release contains a fix for a crash when processing updates with inline keyboard button object/s received through a webhook

6.0.0

08 Nov 23:03
5e64a25
Compare
Choose a tag to compare

This release mainly consists of the refactor of updates handlers to convert them in functions with receivers and bring type safety to them, improvements in the library logging to enable customisation of logging for library users, the update to Kotlin 1.4.10, general improvements and bug fixing.

Features

  • Add customTitle and canSendPolls fields to ChatMember.
  • Support latest poll features.
  • Add handler for poll answer updates.
  • Add handler for new chat members.
  • Add sendDice operation.
  • Add dice field to Message.
  • Add can_join_groups, can_read_all_group_messages and supports_inline_queries fields to User.
  • Support for MarkdownV2 parse mode.
  • Add via_bot field to Message.
  • Support video thumbnails for inline GIF and MPEG4 animations.
  • Support all the new random dice animations (basketball, football and slot machine).
  • Support file unique ids.
  • Add slow_mode_delay field to Chat model.
  • Add setChatAdministratorCustomTitle operation.
  • Add a message handler without filter.
  • Improve library logging.
  • Add CachedPhoto inline query result.
  • Add thumb field to StickerSet.
  • Add media_group_id field to Message.
  • Update Kotlin version to 1.4.1.
  • Support to send text messages by channel username.
  • Handlers to functions with receivers.
  • Better types for InlineKeyboardButton.

Bug fixes

  • Remove ReplyMarkup interface from InlineKeyboardButton.
  • Rename parameter audio to videoNote at sendVideoNote.
  • Catch exceptions in handlers.
  • Fix IllegalArgumentException in getStickerSet method.
  • Fix sendChatAction method.
  • Fix chat permissions related API operations.
  • Fix abnormal error messages.
  • Fix deleteMessage operation.

5.0.0

02 May 17:45
8744e16
Compare
Choose a tag to compare

Changelog

There are several important changes and additions to the library in this release. The package name has been changed from me.ivmg.kotlin-telegram-bot to com.github.kotlintelegrambot. Also, support for webhooks to listen updates has been added to the library.

Features

  • Support for webhooks to receive updates #52

Enhancements

  • Fix sendMediaGroup operation #60
  • Change package name to com.github.kotlintelegrambot #58
  • Format code fragments #59
  • Update Kotlin version #57