Philipp15b / go-steam

Steam's protocol in Go to allow automation of different actions on the Steam network without running an actual Steam client. Includes APIs for friends, chatting, trading, trade offers and TF2 crafting.
https://pkg.go.dev/github.com/Philipp15b/go-steam/v3
Other
392 stars 132 forks source link

why offerResult.Sent show received items #77

Closed StringNick closed 8 years ago

StringNick commented 8 years ago

nowTime:=uint32(time.Now().Unix()) - 1000

offerResult, err := offerClient.GetOffers(true, true, true, true, false, &nowTime)

log.Println(len(offerResult.Sent)) for ,elem := range offerResult.Sent{ log.Println(*elem) } for , elem := range offerResult.Received { log.Println("qq") if len(elem.ToReceive)==0 && len(elem.ToGive) != 0 && elem.EscrowEndDate == 0 && elem.State==2 { //log.Println(elem) checkOffer(elem.TradeOfferId,offerClient) } else { log.Println(elem.State) if elem.State==2 { declineOffer(elem.TradeOfferId,offerClient) } } }

in offerResult.Sent show offers what i get from another ppl, and every element in offerResult.Sent, show othersteamid == my steam id,not partner WTF?

StringNick commented 8 years ago

Use api only from the account from which you are using