I have written python to broadcast message to ma telegram channel. but now i am getting
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))
Source code:
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 );
3
Answers
You should use the POST method instead of GET.
Try this;
This can be in two cases: