How get current Telnet session ID?

I need to use TSgetSessionUsername which wants the session_id as an input – but I can’t find any docs which define how to get the current session.

(net+os 7.4, 9215)

Try this