Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c448bba
Update types.py
coder2020official Apr 12, 2025
805c78f
Add business account methods
coder2020official Apr 12, 2025
1d32718
Added AcceptedGiftTypes and set_business_account_gift_settings
coder2020official Apr 12, 2025
3e0f06a
Add get_business_account_star_balance
coder2020official Apr 12, 2025
af858de
Added transfer_business_account_stars
coder2020official Apr 12, 2025
c012a59
Added get_business_account_gifts, OwnedGiftRegular, OwnedGiftUnique, …
coder2020official Apr 12, 2025
3d238a4
Added convert_gift_to_stars
coder2020official Apr 12, 2025
817f2ad
Added upgrade_gift and transfer_gift methods
coder2020official Apr 12, 2025
b47c73f
Added InputStoryContent
coder2020official Apr 12, 2025
1713909
Stories
coder2020official Apr 12, 2025
1c08163
posting, editing, deleting stories(needs testing)
coder2020official Apr 12, 2025
b05d209
Replaced the field can_send_gift with the field accepted_gift_types …
coder2020official Apr 12, 2025
6fedece
Added unique_gift and gift
coder2020official Apr 12, 2025
e3d7f96
Added gift_premium_subscription
coder2020official Apr 12, 2025
f76cac8
Added premium_subscription_duration to TransactionPartnerUser
coder2020official Apr 12, 2025
0bd9133
Added transaction_type to TransactionPartnerUser
coder2020official Apr 12, 2025
950d7c6
Added paid_message_price_changed
coder2020official Apr 12, 2025
9fb4fdd
Added paid_star_count
coder2020official Apr 12, 2025
0d1e515
Added set_business_account_profile_photo and remove_business_account_…
coder2020official Apr 12, 2025
d63b07a
Fix issues with posting stories
coder2020official Apr 13, 2025
49684b5
Fix stories for async
coder2020official Apr 13, 2025
533b52c
Fix issues related with Bot api 9.0
coder2020official Apr 19, 2025
d4f5ead
Fix typehints
coder2020official Apr 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added paid_star_count
  • Loading branch information
coder2020official committed Apr 12, 2025
commit 9fb4fdd78ba954aca732f90fa6f74969f3a3811a
7 changes: 7 additions & 0 deletions telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,9 @@ class Message(JsonDeserializable):
anonymous group administrator
:type author_signature: :obj:`str`

:param paid_star_count: Optional. The number of Telegram Stars that were paid by the sender of the message to send it
:type paid_star_count: :obj:`int`

:param text: Optional. For text messages, the actual UTF-8 text of the message
:type text: :obj:`str`

Expand Down Expand Up @@ -1449,6 +1452,9 @@ def de_json(cls, json_string):
if 'paid_message_price_changed' in obj:
opts['paid_message_price_changed'] = PaidMessagePriceChanged.de_json(obj['paid_message_price_changed'])
content_type = 'paid_message_price_changed'
if 'paid_star_count' in obj:
opts['paid_star_count'] = obj['paid_star_count']


return cls(message_id, from_user, date, chat, content_type, opts, json_string)

Expand Down Expand Up @@ -1570,6 +1576,7 @@ def __init__(self, message_id, from_user, date, chat, content_type, options, jso
self.gift : Optional[GiftInfo] = None
self.unique_gift : Optional[UniqueGiftInfo] = None
self.paid_message_price_changed: Optional[PaidMessagePriceChanged] = None
self.paid_star_count: Optional[int] = None


for key in options:
Expand Down
3 changes: 3 additions & 0 deletions telebot/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '4.26.0'