def get_all_texts(comment: dict) -> list:
    """Recursive function to collect a comment's texts and all its children.

    Return a list containing all children texts

    Arguments:
    comment -- A dict containing all possible children.
    """
    comment_texts = [comment["body"]]

    # If comment has children...
    if "children" in comment.keys() and len(comment["children"]) > 0:
        # Collect all the childrens text in a flat list
        child_texts = [text for child in comment["children"] for text in get_all_texts(child)]
        comment_texts.extend(child_texts)

    # Return all texts of the given comment
    return comment_texts