From a61b50b7a2c2d2e6baa8a6592d26f24a0656058e Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Sat, 19 Jul 2025 04:59:15 -0400 Subject: [PATCH] Added acknowledgeTradeProtection method --- components/confirmations.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/components/confirmations.js b/components/confirmations.js index cdf8692..a31f262 100644 --- a/components/confirmations.js +++ b/components/confirmations.js @@ -392,6 +392,22 @@ SteamCommunity.prototype.checkConfirmations = function() { } }; +SteamCommunity.prototype.acknowledgeTradeProtection = function(callback) { + this.httpRequestPost({ + uri: 'https://steamcommunity.com//trade/new/acknowledge', + form: { + sessionid: this.getSessionID(), + message: 1 + } + }, (err, res, body) => { + if (err) { + return callback && callback(err); + } + + callback && callback(null); + }, 'steamcommunity'); +} + SteamCommunity.prototype._confirmationCheckerGetKey = function(tag, callback) { if(this._identitySecret) { if(tag == 'details') {