Check if a given user is alive through their unique_id or room_id
Signature
Section titled “Signature”class FetchIsLiveRoute(ClientRoute)Methods
Section titled “Methods”fetch_is_live_room_ids
Section titled “fetch_is_live_room_ids”Check whether a list of room_id’s are currently live
async def fetch_is_live_room_ids(*room_ids: int) -> List[bool]Parameters
Section titled “Parameters”*room_ids(int) — The room_id’s to check
Returns
Section titled “Returns”List[bool] — Whether they are alive, in the order they were sent
fetch_is_live_unique_id
Section titled “fetch_is_live_unique_id”Check whether a given user is live
async def fetch_is_live_unique_id(unique_id: str) -> boolParameters
Section titled “Parameters”unique_id(str) — The unique_id of the user
Returns
Section titled “Returns”bool — Whether they are live
Import
Section titled “Import”from TikTokLive.client.web.routes import FetchIsLiveRoute