Skip to content

31.0.0#356

Open
InsanusMokrassar wants to merge 6 commits intomasterfrom
31.0.0
Open

31.0.0#356
InsanusMokrassar wants to merge 6 commits intomasterfrom
31.0.0

Conversation

@InsanusMokrassar
Copy link
Owner

@InsanusMokrassar InsanusMokrassar commented Feb 15, 2026

9.3

Topics in private chats

Gifts

  • Added the methods getUserGifts and getChatGifts.
  • Replaced the field last_resale_star_count with the fields last_resale_currency and last_resale_amount in the class UniqueGiftInfo.
  • Replaced the parameter exclude_limited with the parameters exclude_limited_upgradable and exclude_limited_non_upgradable in the method getBusinessAccountGifts.
  • Added the value gifted_upgrade as a possible value of UniqueGiftInfo.origin for messages about the upgrade of a gift that was purchased after it was sent.
  • Added the value offer as a possible value of UniqueGiftInfo.origin for messages about the purchase of a gift through a purchase offer.
  • Added the field gift_upgrade_sent to the class Message.
  • Added the field gift_id to the class UniqueGift.
  • Added the field is_from_blockchain to the class UniqueGift.
  • Added the parameter exclude_from_blockchain in the method getBusinessAccountGifts, to filter out gifts that were assigned from the TON blockchain.
  • Added the fields personal_total_count and personal_remaining_count to the class Gift.
  • Added the field is_premium to the classes Gift and UniqueGift.
  • Added the field is_upgrade_separate to the classes GiftInfo and OwnedGiftRegular.
  • Added the class UniqueGiftColors that describes the color scheme for a user's name, replies to messages and link previews based on a unique gift.
  • Added the field has_colors to the class Gift.
  • Added the field colors to the class UniqueGift.
  • Added the class GiftBackground and the field background to the class Gift.
  • Added the field unique_gift_variant_count to the class Gift.
  • Added the field unique_gift_number to the classes GiftInfo and OwnedGiftRegular.
  • Added the field gifts_from_channels to the class AcceptedGiftTypes.

Miscellaneous

  • Allowed bots to disable their main username if they have additional active usernames purchased on Fragment.
  • Allowed bots to disable the right can_restrict_members in channel chats.
  • Added the method repostStory, allowing bots to repost stories across different business accounts they manage.
  • Added the class UserRating and the field rating to the class ChatFullInfo.
  • Increased the maximum price for paid media to 25000 Telegram Stars.
  • Added the field paid_message_star_count to the class ChatFullInfo.
  • Added the parameter message_effect_id to the methods forwardMessage and copyMessage.
  • Added the field unique_gift_colors to the class ChatFullInfo.
  • Added the field completed_by_chat to the class ChecklistTask.

9.4

  • Allowed bots to use custom emoji in messages directly sent by the bot to private, group and supergroup chats if the owner of the bot has a Telegram Premium subscription.
  • Allowed bots to create topics in private chats using the method createForumTopic.
  • Allowed bots to prevent users from creating and deleting topics in private chats through a new setting in the @BotFather Mini App.
  • Added the field allows_users_to_create_topics to the class User.
  • Added the field icon_custom_emoji_id to the classes KeyboardButton and InlineKeyboardButton, allowing bots to show a custom emoji on buttons if they are able to use custom emoji in the message.
  • Added the field style to the classes KeyboardButton and InlineKeyboardButton, allowing bots to change the color of buttons.
  • Added the class ChatOwnerLeft and the field chat_owner_left to the class Message.
  • Added the class ChatOwnerChanged and the field chat_owner_changed to the class Message.
  • Added the methods setMyProfilePhoto and removeMyProfilePhoto, allowing bots to manage their profile picture.
  • Added the class VideoQuality and the field qualities to the class Video allowing bots to get information about other available qualities of a video.
  • Added the field first_profile_audio to the class ChatFullInfo.
  • Added the class UserProfileAudios and the method getUserProfileAudios, allowing bots to fetch a list of audios added to the profile of a user.
  • Added the field rarity to the class UniqueGiftModel.
  • Added the field is_burned to the class UniqueGift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant