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
388 stars 131 forks source link

Strange ID in tradeoffer.go #81

Open ifokeev opened 8 years ago

ifokeev commented 8 years ago

Sorry, I haven't tested the code yet, but what is this? https://github.com/Philipp15b/go-steam/blob/master/tradeoffer/tradeoffer.go#L80

Is it somebody steamid?

Philipp15b commented 8 years ago

That's a very good question! I really don't know myself. It was introduced in PR #59 by @YellowOrWhite, maybe they can clarify? The number is 110000100000000 in hex, I assume it's not a Steam Id. I can't find anything in the Steam Web documentation about an unusual SteamID encoding, I am as confused as you are.

YellowOrWhite commented 8 years ago

t.OtherSteamId is a partner steam id. And uint64(t.OtherAccountId) + 76561197960265728 is an ugly way to convert from account id to steam id.