-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
Bot API 9.3
Important
- Comment here or in the dev group what you want to work on so we can assign you
- Please copy the relevant part of the checklist from Full Support for Bot API 9.3 #5077 to your PR and make sure to cover everything :)
- Please base your branch on the api-9.3-central branch
- If this is your first contribution, please be sure to read the contribution guide
- and feel free to reach out with any questions via https://t.me/pythontelegrambotchannel/105
Describe the solution you'd like
Topics in private chats (@aelkheir) #5079
- 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.
Describe alternatives you've considered
If you want to contribute, you can start from the Contribution Guide.
Additional context
Please comment below before start working on any part of the update so as to keep things in track and avoid double work.
Metadata
Metadata
Assignees
Labels
No labels