We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b7c720 commit e709639Copy full SHA for e709639
steampy/client.py
@@ -371,6 +371,7 @@ def make_offer_with_url(
371
trade_offer_url: str,
372
message: str = '',
373
case_sensitive: bool = True,
374
+ confirm_trade: bool = True,
375
) -> dict:
376
token = get_key_value_from_url(trade_offer_url, 'token', case_sensitive)
377
partner_account_id = get_key_value_from_url(trade_offer_url, 'partner', case_sensitive)
@@ -396,7 +397,7 @@ def make_offer_with_url(
396
397
}
398
399
response = self._session.post(url, data=params, headers=headers).json()
- if response.get('needs_mobile_confirmation'):
400
+ if confirm_trade and response.get('needs_mobile_confirmation'):
401
response.update(self._confirm_transaction(response['tradeofferid']))
402
403
return response
0 commit comments