Merge V1.2.9.5_dev into main - #9
Merged
Merged
Conversation
…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`
- [x] Added the value `"gifted_upgrade"` as a possible value of `UniqueGiftInfo.origin`. - [x] Added the value `"offer"` as a possible value of `UniqueGiftInfo.origin`. - [x] Added the field `gift_upgrade_sent` to the class `Message`. - [x] Added the field `gift_id` to the class `UniqueGift`. - [x] Added the field `is_from_blockchain` to the class `UniqueGift`. - [x] Added the parameter `exclude_from_blockchain` in the method `getBusinessAccountGifts`. - [x] Added the fields `personal_total_count` and `personal_remaining_count` to the class `Gift`. - [x] Added the field `is_premium` to the classes `Gift` and `UniqueGift`. - [x] Added the field `is_upgrade_separate` to the classes `GiftInfo` and `OwnedGiftRegular`. - [x] Added the class `UniqueGiftColors`. - [x] Added the field `has_colors` to the class `Gift`. - [x] Added the field `colors` to the class `UniqueGift`. - [x] Added the class `GiftBackground` and the field `background` to the class `Gift`. - [x] Added the field `unique_gift_variant_count` to the class `Gift`. - [x] Added the field `unique_gift_number` to the classes `GiftInfo` and `OwnedGiftRegular`. - [x] Added the field `gifts_from_channels` to the class `AcceptedGiftTypes`.
- [x] Allowed bots to disable their main username if they have additional active usernames purchased on Fragment. - [x] Allowed bots to disable the right `can_restrict_members` in channel chats. - [x] Added the method `repostStory`. - [x] Added the class `UserRating` and the field `rating` to the class `ChatFullInfo`. - [x] Increased the maximum price for paid media to 25000 Telegram Stars. - [x] Added the field `paid_message_star_count` to the class `ChatFullInfo`. - [x] Added the parameter `message_effect_id` to the methods `forwardMessage` and `copyMessage`. - [x] Added the field `unique_gift_colors` to the class `ChatFullInfo`. - [x] Added the field `completed_by_chat` to the class `ChecklistTask`.
### Custom Emoji - [x] 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. ### Topics in Private Chats - [x] Allowed bots to create topics in private chats using the method `createForumTopic`. - [x] Allowed bots to prevent users from creating and deleting topics in private chats through a new setting in the @Botfather Mini App. - [x] Added the field `allows_users_to_create_topics` to the class `User`. ### Button Improvements - [x] Added the field `icon_custom_emoji_id` to the classes `KeyboardButton` and `InlineKeyboardButton`. - [x] Added the field `style` to the classes `KeyboardButton` and `InlineKeyboardButton`. ### Chat Ownership - [x] Added the class `ChatOwnerLeft` and the field `chat_owner_left` to the class `Message`. - [x] Added the class `ChatOwnerChanged` and the field `chat_owner_changed` to the class `Message`. ### Bot Profile - [x] Added the methods `setMyProfilePhoto` and `removeMyProfilePhoto`. ### Video Improvements - [x] Added the class `VideoQuality` and the field `qualities` to the class `Video`. ### Profile Audio - [x] Added the field `first_profile_audio` to the class `ChatFullInfo`. - [x] Added the class `UserProfileAudios`. - [x] Added the method `getUserProfileAudios`. ### Gifts - [x] Added the field `rarity` to the class `UniqueGiftModel`. - [x] Added the field `is_burned` to the class `UniqueGift`.
### Message Entities - [x] Added the `MessageEntity` type `date_time`, allowing bots to show a formatted date and time to the user. ### Draft Messages - [x] Allowed all bots to use the method `sendMessageDraft`. ### Chat Member Tags - [x] Added the field `tag` to the classes `ChatMemberMember` and `ChatMemberRestricted`. - [x] Added the method `setChatMemberTag`. - [x] Added the field `can_edit_tag` to the classes `ChatMemberRestricted` and `ChatPermissions`. - [x] Added the field `can_manage_tags` to the classes `ChatMemberAdministrator` and `ChatAdministratorRights`. - [x] Added the parameter `can_manage_tags` to the method `promoteChatMember`. - [x] Added the field `sender_tag` to the class `Message`.
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 22, 2026
Merge V1.2.9.5_dev into main a0ccc4f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v1.2.9.5
What's Changed
9.3
Topics in private chats
has_topics_enabledto the classUser, which can be used to determine whether forum topic mode is enabled for the bot in private chats.sendMessageDraft, allowing partial messages to be streamed to a user while being generated.message_thread_idandis_topic_messagein the classMessagefor messages in private chats with forum topic mode enabled.message_thread_idin private chats with topics in the methodssendMessage,sendPhoto,sendVideo,sendAnimation,sendAudio,sendDocument,sendPaidMedia,sendSticker,sendVideoNote,sendVoice,sendLocation,sendVenue,sendContact,sendPoll,sendDice,sendInvoice,sendGame,sendMediaGroup,copyMessage,copyMessages,forwardMessage, andforwardMessages.message_thread_idin private chats in the methodsendChatAction.message_thread_idin private chats with topics in the methodseditForumTopic,deleteForumTopic, andunpinAllForumTopicMessages.is_name_implicitto the classesForumTopicandForumTopicCreated.Gifts
getUserGiftsandgetChatGifts.last_resale_star_countwith the fieldslast_resale_currencyandlast_resale_amountin the classUniqueGiftInfo.exclude_limitedwith the parametersexclude_limited_upgradableandexclude_limited_non_upgradablein the methodgetBusinessAccountGifts."gifted_upgrade"as a possible value ofUniqueGiftInfo.origin."offer"as a possible value ofUniqueGiftInfo.origin.gift_upgrade_sentto the classMessage.gift_idto the classUniqueGift.is_from_blockchainto the classUniqueGift.exclude_from_blockchainin the methodgetBusinessAccountGifts.personal_total_countandpersonal_remaining_countto the classGift.is_premiumto the classesGiftandUniqueGift.is_upgrade_separateto the classesGiftInfoandOwnedGiftRegular.UniqueGiftColors.has_colorsto the classGift.colorsto the classUniqueGift.GiftBackgroundand the fieldbackgroundto the classGift.unique_gift_variant_countto the classGift.unique_gift_numberto the classesGiftInfoandOwnedGiftRegular.gifts_from_channelsto the classAcceptedGiftTypes.Miscellaneous
can_restrict_membersin channel chats.repostStory.UserRatingand the fieldratingto the classChatFullInfo.paid_message_star_countto the classChatFullInfo.message_effect_idto the methodsforwardMessageandcopyMessage.unique_gift_colorsto the classChatFullInfo.completed_by_chatto the classChecklistTask.9.4
Custom Emoji
Topics in Private Chats
createForumTopic.allows_users_to_create_topicsto the classUser.Button Improvements
icon_custom_emoji_idto the classesKeyboardButtonandInlineKeyboardButton.styleto the classesKeyboardButtonandInlineKeyboardButton.Chat Ownership
ChatOwnerLeftand the fieldchat_owner_leftto the classMessage.ChatOwnerChangedand the fieldchat_owner_changedto the classMessage.Bot Profile
setMyProfilePhotoandremoveMyProfilePhoto.Video Improvements
VideoQualityand the fieldqualitiesto the classVideo.Profile Audio
first_profile_audioto the classChatFullInfo.UserProfileAudios.getUserProfileAudios.Gifts
rarityto the classUniqueGiftModel.is_burnedto the classUniqueGift.9.5
Message Entities
MessageEntitytypedate_time, allowing bots to show a formatted date and time to the user.Draft Messages
sendMessageDraft.Chat Member Tags
tagto the classesChatMemberMemberandChatMemberRestricted.setChatMemberTag.can_edit_tagto the classesChatMemberRestrictedandChatPermissions.can_manage_tagsto the classesChatMemberAdministratorandChatAdministratorRights.can_manage_tagsto the methodpromoteChatMember.sender_tagto the classMessage.Full Changelog: v1.2.9.2...v1.2.9.5
Supported Api methods & Objects (Telegram Api v9.5 and below)
Demos
See examples