Steam chat client library
  • Rust 93.2%
  • Nix 6.8%
Find a file
2026-11-07 16:05:39 +01:00
.forgejo/workflows init 2025-09-09 01:06:55 +02:00
examples [Feat] Add invite/other events, bbcode flag, drop self-typing 2026-11-07 16:05:39 +01:00
src [Feat] Add invite/other events, bbcode flag, drop self-typing 2026-11-07 16:05:39 +01:00
.envrc init 2025-09-09 01:06:55 +02:00
.gitignore init 2025-09-09 01:06:55 +02:00
Cargo.lock [Feat] Add invite/other events, bbcode flag, drop self-typing 2026-11-07 16:05:39 +01:00
Cargo.toml [Feat] Add invite/other events, bbcode flag, drop self-typing 2026-11-07 16:05:39 +01:00
flake.lock init 2025-09-09 01:06:55 +02:00
flake.nix init 2025-09-09 01:06:55 +02:00
LICENSE License 2026-11-04 03:22:05 +01:00
README.md [Feat] Add invite/other events, bbcode flag, drop self-typing 2026-11-07 16:05:39 +01:00

aurelia-steam-vent-chat

Steam chat client library.

A high-level companion library for steam-vent for sending and receiving steam chat messages.

This is the Aurelia fork of steam-vent-chat. It differs from upstream in these ways:

  • Ported to steam-vent 0.5 and steamid-ng 3. Protos now come from steam-vent-proto, because steam-vent no longer re-exports them.
  • ChatClient::listen borrows the client instead of returning a 'static stream.
  • Notifications with an invalid friend Steam ID are dropped, because steamid-ng 3 has no default SteamID to fall back to.
  • Incoming messages are delivered. Upstream checks local_echo() on both arms, so it drops every message from a friend.
  • Typing notifications from your own other devices are dropped, so they no longer show up as the friend typing.
  • send_message sets contains_bbcode, as the official clients do.
  • Game invites arrive as ChatEvent::GameInvite. Every other entry type arrives as ChatEvent::Other with its raw value. ChatEvent is #[non_exhaustive], so a match on it needs a wildcard arm.

Usage

let friend_to_bother: steamid_ng::SteamID = get_steam_id();
let connection: steam_vent::Connection = get_steam_vent_connection();

let chat = ChatClient::new(connection);
chat.send_message(friend_to_bother, "Hey!".into()).await?;

let mut events = chat.listen();
while let Some(Ok(event)) = events.next().await {
    match event {
        ChatEvent::Typing(event) => println!("{} is tying...", event.source.steam64()),
        ChatEvent::Message(event) => println!("{}: {}", event.source.steam64(), event.message_no_bbcode.unwrap_or(event.message)),
        ChatEvent::EchoMessage(event) => println!("me: {}", event.message_no_bbcode.unwrap_or(event.message)),
    }
}

See examples/chat.rs for a more complete example or steam-vent for more details about getting a connection.

License

This fork is licensed under the GNU General Public License v3.0 or later, see LICENSE.

It is based on steam-vent-chat by Robin Appelman. Upstream declares license = "MIT" in its Cargo.toml, but includes no license file or copyright notice.