pengrad / java-telegram-bot-api

Telegram Bot API for Java

Home Page:https://core.telegram.org/bots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bot API 7.2

rufus20145 opened this issue · comments

Implement Bot API 7.2 changes
https://core.telegram.org/bots/api#recent-changes

Integration with Business Accounts

  • Added the class BusinessConnection and updates about the connection or disconnection of the bot to a business account, represented by the field business_connection in the class Update.
  • Added updates about new messages in a business account connected to the bot, represented by the field business_message in the class Update.
  • Added updates about message edits in a business account connected to the bot, represented by the field edited_business_message in the class Update.
  • Added updates about message deletion in a business account connected to the bot, represented by the class BusinessMessagesDeleted and the field deleted_business_messages in the class Update.
  • Added the method getBusinessConnection.

Working on Behalf of Business Accounts

Information about Business Accounts

Mixed-Format Sticker Packs

  • Removed the fields is_animated and is_video from the class StickerSet.
  • Added the field format to the class InputSticker.
  • Removed the parameter sticker_format from the method createNewStickerSet.
  • Added the parameter format to the method setStickerSetThumbnail.
  • Increased the maximum number of stickers in any regular and mask sticker set to 120.
  • Allowed to upload WEBM stickers using SendSticker.

Request Chat Improvements

  • Added the fields request_name, request_username, and request_photo to the class KeyboardButtonRequestUsers.
  • Added the fields request_title, request_username, and request_photo to the class KeyboardButtonRequestChat.
  • Added the class SharedUser and replaced the field user_ids in the class UsersShared with the field users.
  • Added the fields title, username, and photo to the class ChatShared.

Other Changes

  • Added the field is_from_offline to the class Message.
  • Added the field can_connect_to_business to the class User.
  • Added the field personal_chat to the class Chat.
  • Added the method replaceStickerInSet,
  • Added the class Birthdate and the field birthdate to the class Chat.
  • Added the field BiometricManager to the class WebApp.

Implemented in #372