Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
09308bf
Added the field has_topics_enabled to the class User, which can be us…
coder2020official Dec 31, 2025
ec90c74
Added the method sendMessageDraft, allowing partial messages to be st…
coder2020official Dec 31, 2025
345a9b1
Supported the fields message_thread_id and is_topic_message in the cl…
coder2020official Dec 31, 2025
0a1ab2f
Supported the parameter message_thread_id in private chats with topic…
coder2020official Dec 31, 2025
184a672
Added the field is_name_implicit to the classes ForumTopic and ForumT…
coder2020official Dec 31, 2025
00032db
Added the methods getUserGifts and getChatGifts.
coder2020official Dec 31, 2025
d8a107a
Replaced the field last_resale_star_count with the fields last_resale…
coder2020official Dec 31, 2025
3bfc160
Replaced the parameter exclude_limited with the parameters exclude_li…
coder2020official Dec 31, 2025
b53bb59
Added the value “gifted_upgrade” as a possible value of UniqueGiftInf…
coder2020official Dec 31, 2025
5ca90c8
Added the field gift_upgrade_sent to the class Message.
coder2020official Dec 31, 2025
2f062da
Added the field gift_id to the class UniqueGift.
coder2020official Dec 31, 2025
98245c3
Added the field is_from_blockchain to the class UniqueGift.
coder2020official Dec 31, 2025
1702b7c
Added the parameter exclude_from_blockchain in the method getBusiness…
coder2020official Dec 31, 2025
e87e7cc
Added the fields personal_total_count and personal_remaining_count to…
coder2020official Dec 31, 2025
19cea9d
Added the field is_premium to the classes Gift and UniqueGift.
coder2020official Dec 31, 2025
d1f2862
Fix
coder2020official Dec 31, 2025
4ea5ddc
Added the field is_upgrade_separate to the classes GiftInfo and Owned…
coder2020official Dec 31, 2025
ba12d90
Added the class UniqueGiftColors that describes the color scheme for …
coder2020official Dec 31, 2025
951f24c
Added the field has_colors to the class Gift.
coder2020official Dec 31, 2025
b6df64c
Added the field colors to the class UniqueGift.
coder2020official Dec 31, 2025
a845b76
Added the class GiftBackground and the field background to the class …
coder2020official Dec 31, 2025
8ad7d7e
Merge branch 'master' into master
coder2020official Dec 31, 2025
8d61448
Added the field unique_gift_variant_count to the class Gift. Added th…
coder2020official Dec 31, 2025
913ff95
Added the method repostStory, allowing bots to repost stories across …
coder2020official Dec 31, 2025
9688d33
Added the class UserRating and the field rating to the class ChatFull…
coder2020official Dec 31, 2025
40d9c3b
Added the field paid_message_star_count to the class ChatFullInfo.
coder2020official Dec 31, 2025
6e6190b
completed_by_chat & unique_gift_colors
coder2020official Dec 31, 2025
9c057fb
Added the parameter message_effect_id to the methods forwardMessage a…
coder2020official Dec 31, 2025
50b6c32
Merge branch 'eternnoir:master' into master
coder2020official Jan 14, 2026
bca4382
Address changes
coder2020official Jan 14, 2026
32c6567
Fix issues
coder2020official Jan 14, 2026
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
8 changes: 7 additions & 1 deletion telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -11808,17 +11808,21 @@ class UniqueGift(JsonDeserializable):
:param backdrop: Backdrop of the gift
:type backdrop: :class:`UniqueGiftBackdrop`

:param is_from_blockchain: Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram
:type is_from_blockchain: :obj:`bool`

:return: Instance of the class
:rtype: :class:`UniqueGift`
"""
def __init__(self, base_name, name, number, model, symbol, backdrop, gift_id, **kwargs):
def __init__(self, base_name, name, number, model, symbol, backdrop, gift_id, is_from_blockchain=None, **kwargs):
self.base_name: str = base_name
self.name: str = name
self.number: int = number
self.model: UniqueGiftModel = model
self.symbol: UniqueGiftSymbol = symbol
self.backdrop: UniqueGiftBackdrop = backdrop
self.gift_id: str = gift_id
self.is_from_blockchain: Optional[bool] = is_from_blockchain

@classmethod
def de_json(cls, json_string):
Expand All @@ -11828,6 +11832,8 @@ def de_json(cls, json_string):
obj['symbol'] = UniqueGiftSymbol.de_json(obj['symbol'])
obj['backdrop'] = UniqueGiftBackdrop.de_json(obj['backdrop'])
obj['gift_id'] = obj['gift_id']
if 'is_from_blockchain' in obj:
obj['is_from_blockchain'] = obj['is_from_blockchain']
return cls(**obj)


Expand Down