user

class steam.client.user.SteamUser(steam_id, steam)

Bases: object

Holds various functionality and data related to a steam user

relationship = <EFriendRelationship.NONE: 0>

friendship status

steam_id = SteamID(id=0, type='Invalid', universe='Invalid', instance=0)

steam id

last_logon
Return type:datetime, None
last_logoff
Return type:datetime, None
name

Name of the steam user, or None if it’s not available

Return type:str, None
state

Personsa state (e.g. Online, Offline, Away, Busy, etc)

Return type:EPersonaState
get_avatar_url(size=2)

Get URL to avatar picture

Parameters:size (int) – possible values are 0, 1, or 2 corresponding to small, medium, large
Returns:url to avatar
Return type:str
send_message(message)

Send chat message to this steam user

Parameters:message (str) – message to send