Code: Select all
response = requests.post("MyTelegramURL")
response.close()

Code: Select all
response = requests.post("MyTelegramURL")
response.close()
I do not know how I can optimize the memory, because the only thing what the code does is to request the URL in a while loop and after every request sleep(3) (to test how many messages I can send without an error)