import json


def read_in_config_file(conf_file):
    """
    Read in the JSON configuration file used to make the groupme bot aware of the groups it is in.
    :param conf_file: The path to the JSON file of configuration information for the groupme bot.
    :return: The bot_name from the config, the dictionary mapping group id to bot id for that group.
    """
    with open(conf_file) as cf:
        conf_str = cf.read()
    conf = json.loads(conf_str)
    return conf['bot_name'], conf['groups']