Connection Properties
unique_id
str
Example:
room_id
None if not connected.
Type: Optional[int]
Example:
connected
bool
Example:
Client Objects
web
TikTokWebClient
Example:
logger
logging.Logger
Example:
Stream Information
room_info
fetch_room_info=True was passed when starting the client (e.g., with client.run() or client.start()).
Type: Optional[dict]
Example:
room_info dictionary typically contains:
title- The livestream titleuser_count- Current viewer countstats- Stream statisticsowner- Information about the streamer- And more…
gift_info
fetch_gift_info=True was passed when starting the client (e.g., with client.run() or client.start()).
Type: Optional[dict]
Example:
gift_info dictionary maps gift IDs to gift data objects containing:
name- The gift namediamond_count- Cost in diamondsimage- Gift image URLstype- Gift type/category- And more…