terminate_session()#
- Client.terminate_session()#
Terminates a session of the current user.
Usable by ✅ Users ❌ Bots- Parameters:
session_id (
int
) – Session identifier.- Returns:
bool
– On success, in case the session is destroyed, True is returned. Otherwise, False is returned.- Raises:
RPCError – In case of a Telegram RPC error.