Skip to content

Conversation

@telepath-companion
Copy link

Bot API 9.3
Topics in private chats

  • Added the field has_topics_enabled to the class User , which can be used to determine whether forum topic mode is enabled for the bot in private chats.
  • Added the method sendMessageDraft , allowing partial messages to be streamed to a user while being generated.
  • Supported the fields message_thread_id and is_topic_message in the class Message for messages in private chats with forum topic mode enabled.
  • Supported the parameter message_thread_id in private chats with topics in the methods sendMessage , sendPhoto , sendVideo , sendAnimation , sendAudio , sendDocument , sendPaidMedia , sendSticker , sendVideoNote , sendVoice , sendLocation , sendVenue , sendContact , sendPoll , sendDice , sendInvoice , sendGame , sendMediaGroup , copyMessage , copyMessages , forwardMessage , and forwardMessages , allowing bots to send a message to a specific topic.
  • Supported the parameter message_thread_id in private chats in the method sendChatAction , allowing bots to send chat actions to a specific topic in private chats.
  • Supported the parameter message_thread_id in private chats with topics in the method editForumTopic , deleteForumTopic , and unpinAllForumTopicMessages , allowing bots to manage topics in private chats.
  • Added the field is_name_implicit to the classes ForumTopic and ForumTopicCreated .
    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 .

@telepath-companion telepath-companion bot added auto-generated Reflects auto-generated code changes bot api Telegram Bot API related WTD Enable What The Diff comments labels Dec 31, 2025
@what-the-diff
Copy link

what-the-diff bot commented Dec 31, 2025

Holy smokestacks! We've got a lot of changes to unwrap. Let's dress them down in more a simple way! 🎉🎈

PR Summary

Social Fields 🎁

  • AcceptedGiftTypes.php and assorted files: Added the ability to accept gifts from channels. More gift variety, yippee! 🎁

User Ratings & Chat Fields 🏅

  • ChatFullInfo.php: Included fields that allow us to collect the user's ratings, see unique gift colors, and count paid message stars. More information, more power! 📊

  • ChecklistTask.php: Tweaked the info relating to task completion. Users or chats, all covered now! 👥

  • UserRating.php: Introduced a new class to reflect user ratings based on Telegram Star spendings. People who give stars, get stars! 🌟

Introduction of Fresh Forum Topics Properties 🗣️

  • ForumTopic.php and ForumTopicCreated.php: Added fun features like automatic naming by a bot for forum topics. Less human work, more bot work! 👩‍💻🤖

Gift files - A Bunch of Enhancements 🎁

  • Gift.php and associated files: Gift descriptions just became a lot more informative with a variety of new properties. Express more with each gift! 💌

  • GiftBackground.php: Introduced a new class to describe the gift background colors. Jazz up those gifts with some color!🌈

More Descriptive Fields on Messages 📝

  • Message class: Enhanced descriptions and added a property to keep track of gift upgrades. Stay on top of your chat game! 💬

  • UniqueGift class: Added properties to better track gift upgrades. Premium gifts, here we come! 💎

  • OwnedGiftRegular class and UniqueGiftInfo class: They both got an upgrade to handle gift upgrades. Trading-up just got easier! 👑

Classy Colors 🎨

  • UniqueGiftColors: Another fresh class to define color schemes associated with unique gifts. Color me surprised! 🖍️

Bots and topics 🤖

  • User Class: New property to check if bots can enable forum topic mode in private chats. It's a bot's world after all. 🌐

So, the gist of it all - more descriptive fields, better handle on gift upgrades, enhanced chat information, user-star ratings and some cool bot interactions. Surfs up! 🏄‍♂️

Stay tuned for more delightful additions folks! We're just getting started. 🚀

@TiiFuchs TiiFuchs merged commit 7242e5b into main Dec 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-generated Reflects auto-generated code changes bot api Telegram Bot API related WTD Enable What The Diff comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants