We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe3e62f commit 8aeebfeCopy full SHA for 8aeebfe
1 file changed
pyrogram/types/messages_and_media/gift.py
@@ -432,11 +432,10 @@ async def _parse_action(
432
parsed_gift.transfer_price = action.transfer_stars
433
434
if action.resale_amount:
435
- for currency in action.resale_amount:
436
- if isinstance(currency, raw.types.StarsAmount):
437
- parsed_gift.last_resale_star_count = currency.amount
438
- elif isinstance(currency, raw.types.StarsTonAmount):
439
- parsed_gift.last_resale_ton_count = currency.amount
+ if isinstance(action.resale_amount, raw.types.StarsAmount):
+ parsed_gift.last_resale_star_count = action.resale_amount.amount
+ elif isinstance(action.resale_amount, raw.types.StarsTonAmount):
+ parsed_gift.last_resale_ton_count = action.resale_amount.amount
440
441
parsed_gift.upgrade_message_id = message.id
442
0 commit comments