Releases: kotlin-telegram-bot/kotlin-telegram-bot
6.1.0
What's Changed
- feat: added livePeriod, new Location data class optional field by @joaoGabriel55 in #246
- Add google_place_id and google_place_type to several classes and methods by @TheKostins in #234
- Update Gradle to 7.2 by @naftalmm in #224
- Update sendChatAction operation by @vjgarciag96 in #260
- Enable running ci workflow manually by @vjgarciag96 in #263
- Fix kotlin telegram bot issue #242 by @martin-petersen in #256
- Add close method by @lpicanco in #261
- leaveChat operation to TelegramBotResult by @vjgarciag96 in #268
- pinChatMessage to TelegramBotResult by @vjgarciag96 in #270
- Issue #149 by @TheKostins in #253
- Fix kotlin telegram bot issue #159: by @martin-petersen in #254
- Fix kotlin telegram bot issue #238: by @martin-petersen in #255
- Use coroutines by @JcMinarro in #277
- Use
Channel
instead ofBlockingQueue
by @JcMinarro in #278 - Only consulte
Dispatcher
while update has not been consumed by @JcMinarro in #285 - Update ci.yml by @ilyabrin in #282
- Open Handler classes by @JcMinarro in #287
- Upgrade ktlint by @JcMinarro in #284
New Contributors
- @joaoGabriel55 made their first contribution in #246
- @TheKostins made their first contribution in #234
- @martin-petersen made their first contribution in #256
- @lpicanco made their first contribution in #261
- @ilyabrin made their first contribution in #282
Full Changelog: 6.0.7...6.1.0
6.0.7
What's Changed
- getMe to TelegramBotResult by @vjgarciag96 in #228
- sendMessage to TelegramBotResult by @vjgarciag96 in #229
- forwardMessage to TelegramBotResult by @vjgarciag96 in #230
- Rename kickChatMember to banChatMember by @vjgarciag96 in #231
- Rename getChatMembersCount to getChatMemberCount by @vjgarciag96 in #232
- Add chatType to InlineQuery by @vjgarciag96 in #233
- Support 'web app' payload for InlineKeyboardButton by @nyavro in #243
New Contributors
Full Changelog: 6.0.6...6.0.7
6.0.6
What's Changed
- Adds allow_sending_withour_reply to sendMediaGroup - Issue #188 by @LeGorge in #202
- Added ip_address parameter by @hamorillo in #206
- Adds disable_content_type_detection to sendDocument and InputMediaDoc… by @LeGorge in #203
- Update to Kotlin v1.5.31 by @vjgarciag96 in #220
- JSON serialization of InputMedia Types by @joshuastorch in #214
- Unify sending files API by @naftalmm in #210
- Add missing parseMode parameter for editMessageCaption by @joshuastorch in #222
- Bump library version to 6.0.6 by @vjgarciag96 in #225
New Contributors
- @hamorillo made their first contribution in #206
- @joshuastorch made their first contribution in #214
- @naftalmm made their first contribution in #210
Full Changelog: 6.0.5...6.0.6
6.0.5
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
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
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
6.0.1
This release contains a fix for a crash when processing updates with inline keyboard button object/s received through a webhook
6.0.0
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
andcanSendPolls
fields toChatMember
. - Support latest poll features.
- Add handler for poll answer updates.
- Add handler for new chat members.
- Add
sendDice
operation. - Add
dice
field toMessage
. - Add
can_join_groups
,can_read_all_group_messages
andsupports_inline_queries
fields toUser
. - Support for MarkdownV2 parse mode.
- Add
via_bot
field toMessage
. - 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 toChat
model. - Add
setChatAdministratorCustomTitle
operation. - Add a message handler without filter.
- Improve library logging.
- Add
CachedPhoto
inline query result. - Add
thumb
field toStickerSet
. - Add
media_group_id
field toMessage
. - 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 fromInlineKeyboardButton
. - Rename parameter
audio
tovideoNote
atsendVideoNote
. - Catch exceptions in handlers.
- Fix
IllegalArgumentException
ingetStickerSet
method. - Fix
sendChatAction
method. - Fix chat permissions related API operations.
- Fix abnormal error messages.
- Fix
deleteMessage
operation.
5.0.0
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