-
hi so i've been using this library for the past few days and i just can figure out how to get a message from another user or a group ive looked at #13 as well as the docs and i found some things that looked correct but this i think is the closest ive gotten but it still doesn't work |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
To handle messages you need to listen for the client = ...
@client.on("chat_message")
def on_message(user: steam.client.user.User, text: str):
...
client.cli_logon() Recieving messages from a group/clan currently isn't handled by the client by default see #13 for more. You can implement for them yourself with a bit of fandangling. @client.on("ChatRoomClient.NotifyIncomingChatMessage#1")
def on_clan_or_group_message(msg):
... # go wild with msg, (it should be a wrapper around https://github.com/ValvePython/steam/blob/bf3cb330d3e4303a20092e842c503e373294382f/protobufs/steammessages_chat.proto#L786-L797) |
Beta Was this translation helpful? Give feedback.
To handle messages you need to listen for the
"chat_message"
event you also shouldn't register the listener inside of a while True loop, your code should like more likeRecieving messages from a group/clan currently isn't handled by the client by default see #13 for more. You can implement for them yourself with a bit of fandangling.