def do_update_bot_config_data(bot_profile: UserProfile, config_data: Dict[(str, str)]) -> None:
    for (key, value) in config_data.items():
        set_bot_config(bot_profile, key, value)
    updated_config_data = get_bot_config(bot_profile)
    send_event(bot_profile.realm, dict(type='realm_bot', op='update', bot=dict(user_id=bot_profile.id, services=[dict(config_data=updated_config_data)])), bot_owner_user_ids(bot_profile))
def do_update_bot_config_data(bot_profile: UserProfile, config_data: Dict[(str, str)]) -> None:
    for (key, value) in config_data.items():
        set_bot_config(bot_profile, key, value)
    updated_config_data = get_bot_config(bot_profile)
    send_event(bot_profile.realm, dict(type='realm_bot', op='update', bot=dict(user_id=bot_profile.id, services=[dict(config_data=updated_config_data)])), bot_owner_user_ids(bot_profile))