Skip to content
Discussion options

You must be logged in to vote

You can use the SteamFriendlist to manage everything friend stuff related. If you want to add someone after they've sent a friend request you can do something like

from steam.client.builtins.friends import SteamFriendlist

friendslist = SteamFriendlist(sc) # sc is your SteamClient

@friendslist.on("friend_invite")
def fl_friend_invite(user):
	friendslist.add(user)

Hope this helps!!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tom-jm69
Comment options

Answer selected by tom-jm69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants