BHznJNs分享一个用来更新 New-API 指定渠道使用的代理的小脚本 中发帖

import requests
import json
import sys

class NewAPIChannelProxyUpdater:
def __init__(self, base_url, admin_id: int, admin_token: str):
self.base_url = base_url.rstrip('/')
self.headers = {
'New-Api-User': str(admin_id),
'Authorization': f'Bearer {admin_token}',
'Content-Type': 'application/json'
}

def update_channel_proxy(self...