• Extracts all (cacheable) entities from a TlObject or a list of them. Only checks .user, .chat, .channel, .users and .chats properties

    Parameters

    • obj: TlObject | TlObject[]

    Returns Iterable<tl.TypeUser | tl.TypeChat>