我怎么能接受一个蒸汽蒸汽的报价

本文关键字:一个 能接受 | 更新日期: 2023-09-27 18:18:21

我已经检查了SteamBot的源代码,但我似乎不太了解它,因为我是一个新的编码员。如果有人能帮我,那就太好了!提前谢谢。

我在SteamBot (https://github.com/Jessecar96/SteamBot/blob/master/SteamTrade/TradeOffer/OfferSession.cs#L30)上找到了一个方法

但我似乎不明白。

这里有一些可以帮助(https://www.reddit.com/r/SteamBot/comments/3a6rp6/who_to_accept_traiding_offers_with_c_steam/.compact)

我怎么能接受一个蒸汽蒸汽的报价

在您的代码中,您需要引用类

//at the top of the file
using SteamTrade.TradeOffer;
//the later on in the file
Offersession newSteamSession = new OfferSession('yourApiKey', 'steamweb');
string convertedStringtradeId = String.Empty;
var isAccepted = newSteamSession.Accept(tradeOfferId, convertedStringtradeId);
if(isAccepted) 
{
    //do more logic here if the offer was good
    //you can use the convertedStringtradeId if you need something

}else
{
  //what happens when things go wrong
}