def get_last_update_id(updates):
    """
    Calculates the highest ID of all the updates it receive from getUpdates.
    :param updates: getUpdates()
    :return: last update id
    """
    update_ids = []
    for update in updates["result"]:
        update_ids.append(int(update["update_id"]))
    return max(update_ids)