Skip to content

Commit 9fb4fdd

Browse files
Added paid_star_count
1 parent 950d7c6 commit 9fb4fdd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

telebot/types.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,9 @@ class Message(JsonDeserializable):
981981
anonymous group administrator
982982
:type author_signature: :obj:`str`
983983

984+
:param paid_star_count: Optional. The number of Telegram Stars that were paid by the sender of the message to send it
985+
:type paid_star_count: :obj:`int`
986+
984987
:param text: Optional. For text messages, the actual UTF-8 text of the message
985988
:type text: :obj:`str`
986989

@@ -1449,6 +1452,9 @@ def de_json(cls, json_string):
14491452
if 'paid_message_price_changed' in obj:
14501453
opts['paid_message_price_changed'] = PaidMessagePriceChanged.de_json(obj['paid_message_price_changed'])
14511454
content_type = 'paid_message_price_changed'
1455+
if 'paid_star_count' in obj:
1456+
opts['paid_star_count'] = obj['paid_star_count']
1457+
14521458

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

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

15741581

15751582
for key in options:

telebot/version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Versions should comply with PEP440.
2+
# This line is parsed in setup.py:
3+
__version__ = '4.26.0'

0 commit comments

Comments
 (0)