def get_history(id_file):
    """Get information on bot action history from file"""

    id_dict = {}

    # Make previously detected id_list from id_file contents
    with open(id_file, 'r') as fh:
        for line in fh.read().splitlines():
            if line:
                post_id, pred, _, _, _ = line.split('\t')
                id_dict[post_id] = pred

    return id_dict