Skip to content

Commit 15b0342

Browse files
fix
1 parent b089ae1 commit 15b0342

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

telebot/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10526,6 +10526,8 @@ def de_json(cls, json_string):
1052610526
obj['paid_media'] = [PaidMedia.de_json(media) for media in obj['paid_media']]
1052710527
if 'gift' in obj:
1052810528
obj['gift'] = Gift.de_json(obj['gift'])
10529+
if 'affiliate' in obj:
10530+
obj['affiliate'] = AffiliateInfo.de_json(obj['affiliate'])
1052910531
return cls(**obj)
1053010532

1053110533

0 commit comments

Comments
 (0)