import json


def get_batch_from_file(batchfil: str):
    """
    reads a batch of tweets that were saved to file with save_tojson
    :param batchfil: str with name of file to read
    :return: list of dict
    """
    f_h = open(batchfil, mode='r', encoding='utf-8')
    rawtext = json.load(f_h)
    f_h.close()
    return rawtext