def parse_list_amount(amount_str: str) -> int:
    """
    Convert str to absolute integer.

    If amount is "all", then it will be 0.

    Args:
        amount_str (str): amount from the message

    Returns:
        int: amount to be used
    """

    if amount_str.lower() == "all":
        return 0

    else:
        return abs(int(amount_str))