Skip to main content

build_session_key

Function build_session_key 

Source
pub fn build_session_key(
    agent_id: String,
    channel: String,
    account_id: String,
    peer_type: String,
    peer_id: String,
) -> String
Expand description

Build a session key from components.

§Arguments

  • agent_id - The agent ID
  • channel - Channel ID (e.g., “telegram”, “discord”)
  • account_id - Account/bot ID on the channel
  • peer_type - “dm”, “group”, “channel”, or “thread”
  • peer_id - The peer/user/group ID