@@ -8994,6 +8994,9 @@ class Giveaway(JsonDeserializable):
89948994 :param country_codes: Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway.
89958995 :type country_codes: :obj:`list` of :obj:`str`
89968996
8997+ :param prize_star_count: Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
8998+ :type prize_star_count: :obj:`int`
8999+
89979000 :param premium_subscription_month_count: Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for
89989001 :type premium_subscription_month_count: :obj:`int`
89999002
@@ -9011,7 +9014,7 @@ def de_json(cls, json_string):
90119014 def __init__ (self , chats : List [Chat ], winners_selection_date : int , winner_count : int ,
90129015 only_new_members : Optional [bool ] = None , has_public_winners : Optional [bool ] = None ,
90139016 prize_description : Optional [str ] = None , country_codes : Optional [List [str ]] = None ,
9014- premium_subscription_month_count : Optional [int ] = None , ** kwargs ) -> None :
9017+ premium_subscription_month_count : Optional [int ] = None , prize_star_count : Optional [ int ] = None , ** kwargs ) -> None :
90159018 self .chats : List [Chat ] = chats
90169019 self .winners_selection_date : int = winners_selection_date
90179020 self .winner_count : int = winner_count
@@ -9020,6 +9023,7 @@ def __init__(self, chats: List[Chat], winners_selection_date: int, winner_count:
90209023 self .prize_description : Optional [str ] = prize_description
90219024 self .country_codes : Optional [List [str ]] = country_codes
90229025 self .premium_subscription_month_count : Optional [int ] = premium_subscription_month_count
9026+ self .prize_star_count : Optional [int ] = prize_star_count
90239027
90249028
90259029class GiveawayWinners (JsonDeserializable ):
@@ -9061,6 +9065,9 @@ class GiveawayWinners(JsonDeserializable):
90619065 :param prize_description: Optional. Description of additional giveaway prize
90629066 :type prize_description: :obj:`str`
90639067
9068+ :param prize_star_count: Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
9069+ :type prize_star_count: :obj:`int`
9070+
90649071 :return: Instance of the class
90659072 :rtype: :class:`GiveawayWinners`
90669073 """
@@ -9077,7 +9084,7 @@ def __init__(self, chat: Chat, giveaway_message_id: int, winners_selection_date:
90779084 winners : List [User ], additional_chat_count : Optional [int ] = None ,
90789085 premium_subscription_month_count : Optional [int ] = None , unclaimed_prize_count : Optional [int ] = None ,
90799086 only_new_members : Optional [bool ] = None , was_refunded : Optional [bool ] = None ,
9080- prize_description : Optional [str ] = None , ** kwargs ) -> None :
9087+ prize_description : Optional [str ] = None , prize_star_count : Optional [ int ] = None , ** kwargs ) -> None :
90819088 self .chat : Chat = chat
90829089 self .giveaway_message_id : int = giveaway_message_id
90839090 self .winners_selection_date : int = winners_selection_date
@@ -9089,6 +9096,7 @@ def __init__(self, chat: Chat, giveaway_message_id: int, winners_selection_date:
90899096 self .only_new_members : Optional [bool ] = only_new_members
90909097 self .was_refunded : Optional [bool ] = was_refunded
90919098 self .prize_description : Optional [str ] = prize_description
9099+ self .prize_star_count : Optional [int ] = prize_star_count
90929100
90939101
90949102class GiveawayCompleted (JsonDeserializable ):
@@ -9106,6 +9114,9 @@ class GiveawayCompleted(JsonDeserializable):
91069114 :param giveaway_message: Optional. Message with the giveaway that was completed, if it wasn't deleted
91079115 :type giveaway_message: :class:`Message`
91089116
9117+ :param is_star_giveaway: Optional. True, if the giveaway was a Telegram Star giveaway
9118+ :type is_star_giveaway: :obj:`bool`
9119+
91099120 :return: Instance of the class
91109121 :rtype: :class:`GiveawayCompleted`
91119122 """
@@ -9119,15 +9130,21 @@ def de_json(cls, json_string):
91199130 return cls (** obj )
91209131
91219132 def __init__ (self , winner_count : int , unclaimed_prize_count : Optional [int ] = None ,
9122- giveaway_message : Optional [Message ] = None , ** kwargs ) -> None :
9133+ giveaway_message : Optional [Message ] = None , is_star_giveaway : Optional [ bool ] = None , ** kwargs ) -> None :
91239134 self .winner_count : int = winner_count
91249135 self .unclaimed_prize_count : Optional [int ] = unclaimed_prize_count
91259136 self .giveaway_message : Optional [Message ] = giveaway_message
9137+ self .is_star_giveaway : Optional [bool ] = is_star_giveaway
91269138
91279139
91289140class GiveawayCreated (JsonDeserializable ):
91299141 """
9130- This object represents a service message about the creation of a scheduled giveaway. Currently holds no information.
9142+ This object represents a service message about the creation of a scheduled giveaway.
9143+
9144+ :prize_star_count: Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
9145+ :type prize_star_count: :obj:`int`
9146+
9147+ :return: Instance of the class
91319148 """
91329149
91339150 @classmethod
@@ -9136,8 +9153,8 @@ def de_json(cls, json_string):
91369153 obj = cls .check_json (json_string )
91379154 return cls (** obj )
91389155
9139- def __init__ (self , ** kwargs ) -> None :
9140- pass
9156+ def __init__ (self , prize_star_count = None , ** kwargs ) -> None :
9157+ self . prize_star_count : Optional [ str ] = prize_star_count
91419158
91429159
91439160class TextQuote (JsonDeserializable ):
@@ -9468,6 +9485,9 @@ class ChatBoostSourceGiveaway(ChatBoostSource):
94689485 :param is_unclaimed: True, if the giveaway was completed, but there was no user to win the prize
94699486 :type is_unclaimed: :obj:`bool`
94709487
9488+ :param prize_star_count: Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
9489+ :type prize_star_count: :obj:`int`
9490+
94719491 :return: Instance of the class
94729492 :rtype: :class:`ChatBoostSourceGiveaway`
94739493 """
@@ -9479,11 +9499,12 @@ def de_json(cls, json_string):
94799499 obj ['user' ] = User .de_json (obj .get ('user' ))
94809500 return cls (** obj )
94819501
9482- def __init__ (self , source , giveaway_message_id , user = None , is_unclaimed = None , ** kwargs ):
9502+ def __init__ (self , source , giveaway_message_id , user = None , is_unclaimed = None , prize_star_count = None , ** kwargs ):
94839503 self .source : str = source
94849504 self .giveaway_message_id : int = giveaway_message_id
94859505 self .user : User = user
94869506 self .is_unclaimed : bool = is_unclaimed
9507+ self .prize_star_count : Optional [int ] = prize_star_count
94879508
94889509
94899510class ChatBoost (JsonDeserializable ):
0 commit comments