Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2020official committed Dec 4, 2024
1 parent b089ae1 commit 15b0342
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10526,6 +10526,8 @@ def de_json(cls, json_string):
obj['paid_media'] = [PaidMedia.de_json(media) for media in obj['paid_media']]
if 'gift' in obj:
obj['gift'] = Gift.de_json(obj['gift'])
if 'affiliate' in obj:
obj['affiliate'] = AffiliateInfo.de_json(obj['affiliate'])
return cls(**obj)


Expand Down

0 comments on commit 15b0342

Please sign in to comment.