def _generate_widget_parameters(bot_name, user_photo, size, corner_radius,
    access_write):
    """
    Generate common widget embed code parameters.
    """
    user_photo_bool = str(user_photo).lower()
    data_telegram_login = 'data-telegram-login="{}" '.format(bot_name)
    data_size = 'data-size="{}" '.format(size)
    data_userpic = 'data-userpic="{}" '.format(user_photo_bool
        ) if not user_photo else ''
    data_radius = 'data-radius="{}" '.format(corner_radius
        ) if corner_radius else ''
    data_request_access = 'data-request-access="write"' if access_write else ''
    return (data_telegram_login, data_size, data_userpic, data_radius,
        data_request_access)
