Skip to content

Releases: pengrad/java-telegram-bot-api

Bot API 3.4

11 Oct 19:25
Compare
Choose a tag to compare
  • Added new field live_period to the sendLocation method and the editMessageLiveLocation and stopMessageLiveLocation methods
  • Added setChatStickerSet and deleteChatStickerSet methods to manage group sticker sets
  • Added sticker_set_name and can_set_sticker_set in Chat
  • Added caption_entities in Message
  • Add sleep for UpdatesListener in case failure or empty response #107
  • TelegramBot.Builder instead of TelegramBotAdapter
  • Update Gson 2.8.2, OkHttp 3.9.0

Bot API 3.3

30 Aug 16:19
Compare
Choose a tag to compare
  • Added the new field pinned_message to the Chat object.
  • Added the new fields author_signature and forward_signature to the Message object.
  • Added the new field is_bot to the User object.
  • Make requests as a response from webhook #108. Thanks @DenisNP

Bot API 3.2

23 Jul 16:58
Compare
Choose a tag to compare
  • Added new methods for working with stickers: getStickerSet, uploadStickerFile, createNewStickerSet, addStickerToSet, setStickerPositionInSet, and deleteStickerFromSet.
  • Added the fields set_name and mask_position to the Sticker object, plus two new objects, StickerSet, and MaskPosition.
  • Handle all GetUpdate fields in UpdatesHandler #105. Thanks @theskylineguy

Bot API 3.1

01 Jul 18:05
Compare
Choose a tag to compare
  • Added new methods restrictChatMember and promoteChatMember to manage users and admins, added new parameter until_date to kickChatMember for temporary bans.
  • Added new methods exportChatInviteLink, setChatPhoto, deleteChatPhoto, setChatTitle, setChatDescription, pinChatMessage and unpinChatMessage to manage groups and channels.
  • Added the new fields photo, description and invite_link to the Chat object.
  • Added the new fields until_date, can_be_edited, can_change_info, can_post_messages, can_edit_messages, can_delete_messages, can_invite_users, can_restrict_members, can_pin_messages, can_promote_members, can_send_messages, can_send_media_messages, can_send_other_messages and can_add_web_page_previews to the ChatMember object.
  • Update Gson 2.8.1, OkHttp 3.8.1

3.0.1

06 Jun 17:14
Compare
Choose a tag to compare
  • Add fields max_connections, allowed_updates in WebhookInfo
  • Encode file path url #90
  • Change hardcoded telegram API URL for CI mocks #91. Thanks @IngvarJackal
  • Remove deprecated InputFile, InputFileBytes, GetUpdatesListener

Bot API 3.0

27 May 11:53
Compare
Choose a tag to compare

Payment platform and video messages

  • Added new kinds of updates, shipping_query and pre_checkout_query, and new types of message content, invoice and successful_payment.
  • Added new methods for payments: sendInvoice, answerShippingQuery, and answerPreCheckoutQuery.
  • Added a new type of button, the pay button to InlineKeyboardButton.
  • Added the sendVideoNote method, the new field video_note to Message, the fields record_video_note or upload_video_note to sendChatAction
  • User object now may have a language_code field
  • New method deleteMessage
  • New fields gif_duration in InlineQueryResultGif and mpeg4_duration in InlineQueryResultMpeg4Gif
  • Replaced the field new_chat_member in Message with new_chat_members
  • OkHttp 3.8.0

2.3.1.2

13 May 06:03
Compare
Choose a tag to compare

2.3.1.1

02 Feb 17:21
Compare
Choose a tag to compare

Bot API 2.3.1

07 Dec 17:01
Compare
Choose a tag to compare
  • Use the new field max_connections in setWebhook to optimize your bot's server load
  • Use allowed_updates in setWebhook and getUpdates to selectively subscribe to updates of a certain type. Among other things, this allows you to stop getting updates about new posts in channels where your bot is an admin.
  • deleteWebhook moved out of setWebhook to get a whole separate method for itself.

Bot API 2.3

23 Nov 16:07
Compare
Choose a tag to compare
  • Added new fields channel_post and edited_channel_post to Update
  • Added force and disable_edit_message parameters to SetGameScore request, mark editMessage as deprecated
  • Added the new field forward_from_message_id to Message
  • Added the new parameter cache_time to answerCallbackQuery
  • Added ReplyKeyboardRemove object, mark ReplyKeyboardHide as deprecated
  • Fix UpdateListener names, mark old as deprecated
  • Remove old deprecated bot
  • OkHttp 3.4.2
  • Gson 2.8.0