url = "
https://wsapi.simsimi.com/190410/talk/"
pay1 = "{\n\t\"utext\": \"" + result + "\", \n\t\"lang\": \"az\" \n}"
headers = {
'Content-Type': "application/json; charset=utf-8",
'x-api-key': "/KEY"
}
response = requests.request("POST", url, data=pay1.encode('utf-8'), headers=headers)
jsonn = response.json()
final = jsonn['atext']
handle = final