我已经编写了python来向ma电报频道广播消息。但现在我开始
error 1
443 too many connections, ssl problem, i
error 2
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
源代码:
token = 'ccccccc';
channelName = '@ccccc';
message = "test";
url = 'https://api.telegram.org/bot' + token + '/sendMessage?chat_id=' + channelName + '&text=' + message;
result = requests.get ( url, verify=False );
print ( result.content );
这有两种情况:
应该使用POST方法而不是GET方法。你知道吗
试试这个
相关问题 更多 >
编程相关推荐