-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bot API 9.0 #2470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot API 9.0 #2470
Conversation
Skipped setting and removing profile photos for now |
…OwnedGifts, UniqueGift, OwnedGift, UniqueGiftModel, UniqueGiftSymbol, UniqueGiftBackdrop, UniqueGiftBackdropColors
InputStoryContent might need more review / testing |
Posting, editing, deleting stories will need testing |
…of the type AcceptedGiftTypes in the class ChatFullInfo.
Done, but needs testing from my side too & careful review |
@Badiboy I think I am done, but there may be parts where you will need to carefully review. E.g I have kind of tested posting stories, but areas in post_story did not work. Request seems fine to me, maybe I have passed wrong values. I haven't contributed in a while so forgot some things, please check carefully and take your time |
Got it. |
Added the class InputProfilePhoto, describing a profile photo to be set. Do not see this class. |
Update
(We can make this update later, after merge this one) |
I'm done. You made huge work. |
I should be done for most, can you check my comments for unresolved suggestions |
Also skipped content type media etc for now |
telebot/types.py
Outdated
@@ -11426,8 +11440,8 @@ class AcceptedGiftTypes(JsonDeserializable, JsonSerializable): | |||
:return: Instance of the class | |||
:rtype: :class:`AcceptedGiftTypes` | |||
""" | |||
def __init__(self, unlimited_gifts: Optional[bool] = None, limited_gifts: Optional[bool] = None, | |||
unique_gifts: Optional[bool] = None, premium_subscription: Optional[bool] = None, **kwargs): | |||
def __init__(self, unlimited_gifts: Optional[bool], limited_gifts: Optional[bool], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional[bool] => bool
telebot/types.py
Outdated
def __init__(self, unlimited_gifts: Optional[bool] = None, limited_gifts: Optional[bool] = None, | ||
unique_gifts: Optional[bool] = None, premium_subscription: Optional[bool] = None, **kwargs): | ||
def __init__(self, unlimited_gifts: Optional[bool], limited_gifts: Optional[bool], | ||
unique_gifts: Optional[bool], premium_subscription: Optional[bool], **kwargs): | ||
self.unlimited_gifts: Optional[bool] = unlimited_gifts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional[bool] => bool
The last ) Then merge )) |
Done I think, you can merge |
Good work! |
April 11, 2025
Bot API 9.0
Business Accounts
Mini Apps
Gifts
Telegram Premium
General