We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b089ae1 commit 15b0342Copy full SHA for 15b0342
1 file changed
telebot/types.py
@@ -10526,6 +10526,8 @@ def de_json(cls, json_string):
10526
obj['paid_media'] = [PaidMedia.de_json(media) for media in obj['paid_media']]
10527
if 'gift' in obj:
10528
obj['gift'] = Gift.de_json(obj['gift'])
10529
+ if 'affiliate' in obj:
10530
+ obj['affiliate'] = AffiliateInfo.de_json(obj['affiliate'])
10531
return cls(**obj)
10532
10533
0 commit comments