sessionkey

package
v0.6.75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(receiveIDType, receiveID string) string

func ExtractSeedMessageID added in v0.6.49

func ExtractSeedMessageID(sessionKey string) string

ExtractSeedMessageID returns the seed message ID (om_xxx) embedded in a session key as a "|seed:om_xxx" token, or empty string if none is present. The seed is the root/anchor message of a Feishu work-thread session; it can be used with the Reply API (reply_in_thread=true) to continue the thread.

func ExtractThreadID added in v0.6.48

func ExtractThreadID(sessionKey string) string

ExtractThreadID returns the Feishu thread ID (omt_xxx) embedded in a session key as a "|thread:omt_xxx" token, or empty string if none is present.

func ThreadScope added in v0.6.64

func ThreadScope(sessionKey string) string

ThreadScope returns an opaque string that identifies the specific conversation thread within a session key, or empty string if the session key does not contain thread-identifying information.

Two session keys that share the same VisibilityKey but have different (non-empty) ThreadScope values belong to independent threads; an active session in one thread must not be treated as blocking a task targeting another thread.

Precedence: seed token > thread token > empty (plain group/DM session).

func VisibilityKey

func VisibilityKey(sessionKey string) string

func WithoutMessage

func WithoutMessage(sessionKey string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL