Skip to content

Commit e709639

Browse files
authored
Client - Add confirm_trade_option to make_offer_with_url(#384)
1 parent 9b7c720 commit e709639

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

steampy/client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ def make_offer_with_url(
371371
trade_offer_url: str,
372372
message: str = '',
373373
case_sensitive: bool = True,
374+
confirm_trade: bool = True,
374375
) -> dict:
375376
token = get_key_value_from_url(trade_offer_url, 'token', case_sensitive)
376377
partner_account_id = get_key_value_from_url(trade_offer_url, 'partner', case_sensitive)
@@ -396,7 +397,7 @@ def make_offer_with_url(
396397
}
397398

398399
response = self._session.post(url, data=params, headers=headers).json()
399-
if response.get('needs_mobile_confirmation'):
400+
if confirm_trade and response.get('needs_mobile_confirmation'):
400401
response.update(self._confirm_transaction(response['tradeofferid']))
401402

402403
return response

0 commit comments

Comments
 (0)