Releases: pengrad/java-telegram-bot-api
Releases · pengrad/java-telegram-bot-api
5.0.1
Bot API 5.0
https://core.telegram.org/bots/api-changelog#november-4-2020
- Add simple constructors for InlineKeyboardMarkup, ReplyKeyboardMarkup
- Keyboard improvements + generics (#209). Thanks @marcovaneck
- Use java Logger in UpdatesHandler, close #210
- Use String for InputTextMessageContent.parse_mode
- Fix enum name() in SendPoll
Bot API 4.9
https://core.telegram.org/bots/api-changelog#june-4-2020
- Java 8 target compatibility
- Added the new field via_bot to the Message object. You can now know which bot was used to send a message.
- Supported video thumbnails for inline GIF and MPEG4 animations.
- Supported the new basketball animation for the random dice. Choose between different animations (dice, darts, basketball) by specifying the emoji parameter in the method sendDice.
Bot API 4.8
https://core.telegram.org/bots/api-changelog#april-24-2020
- Supported explanations for Quizzes 2.0. Add explanations by specifying the parameters explanation and explanation_parse_mode in the method sendPoll.
- Added the fields explanation and explanation_entities to the Poll object.
- Supported timed polls that automatically close at a certain date and time. Set up by specifying the parameter open_period or close_date in the method sendPoll.
- Added the fields open_period and close_date to the Poll object.
- Supported the new darts animation for the dice mini-game. Choose between the default dice animation and darts animation by specifying the parameter emoji in the method sendDice.
- Added the field emoji to the Dice object.
Bot API 4.7
https://core.telegram.org/bots/api#march-30-2020
- Added the method sendDice for sending a dice message, which will have a random value from 1 to 6
- Added the field dice to the Message object
- Added the method getMyCommands for getting the current list of the bot's commands. Added the method setMyCommands for changing the list of the bot's commands through the Bot API
- Added the ability to create animated sticker sets by specifying the parameter tgs_sticker instead of png_sticker in the method createNewStickerSet
- Added the ability to add animated stickers to sets created by the bot by specifying the parameter tgs_sticker instead of png_sticker in the method addStickerToSet
- Added the field thumb to the StickerSet object
- Added the ability to change thumbnails of sticker sets created by the bot using the method setStickerSetThumb
- Update to Gson 2.8.6, OkHttp 3.12.10
Bot API 4.6
https://core.telegram.org/bots/api#january-23-2020
- Added the ability to send non-anonymous, multiple answer, and quiz-style polls: added the parameters is_anonymous, type, allows_multiple_answers, correct_option_id, is_closed options to the method sendPoll
- Added the fields total_voter_count, is_anonymous, type, allows_multiple_answers, correct_option_id to the Poll object
- Added the object KeyboardButtonPollType and the field request_poll to the object KeyboardButton
- Added updates about changes of user answers in non-anonymous polls, represented by the object PollAnswer and the field poll_answer in the Update object
- Added more information about the bot in response to the getMe request: added the fields can_join_groups, can_read_all_group_messages and supports_inline_queries to the User object
- Added the optional field language to the MessageEntity object
- Set write timeout to 75 secs
Bot API 4.5
https://core.telegram.org/bots/api-changelog#december-31-2019
- Added support for two new MessageEntity types, underline and strikethrough
- Added a new parse mode MarkdownV2
- Added the field file_unique_id to the objects Animation, Audio, Document, PassportFile, PhotoSize, Sticker, Video, VideoNote, Voice, File
- Added the fields small_file_unique_id and big_file_unique_id to the object ChatPhoto
- Added the field custom_title to the ChatMember object
- Added the new method setChatAdministratorCustomTitle to manage the custom titles of administrators promoted by the bot
- Added the field slow_mode_delay to the Chat object
Bot API 4.4
Bot API 4.4 changes #176
- Added support for animated stickers. New field is_animated in Sticker and StickerSet objects
- Added support for default permissions in groups. New object ChatPermissions, containing actions which a member can take in a chat. New field permissions in the Chat object; new method setChatPermissions
- Added support for more permissions for group and supergroup members: added the new field can_send_polls to ChatMember object
- The method restrictChatMember now takes the new user permissions in a single argument of the type ChatPermissions
4.3.1
Bot API 4.3
- Added the new object LoginUrl and the new field login_url to the InlineKeyboardButton object
- Added the field reply_markup to the Message object, containing the inline keyboard attached to the message
Library changes:
- Log response errors and failures in UpdateHandler. Closes #161
- Stop catching client onResponse exceptions in network callback. This will prevent delivering client exceptions into onFailure callback, which is supposed to handle network or library errors only
- Change Base64 implementation (used in Passport decrypt) to AOSP, remove encoding methods
- Remove deprecated code. #165
Remove TelegramBotAdapter class, use TelegramBot.Builder.
Remove ReplyKeyboardHide class, use ReplyKeyboardRemove.
Remove EditMessageReplyMarkup constructor with text.
Remove EditMessageCaption constructor with text.
Remove Message.newChatMember, use newChatMembers.
Remove Credentials.payload, use nonce.
Remove SetGameScore.editMessage(), use disableEditMessage.