Computer Science, asked by apoorvahegde, 8 months ago

try:
response-requests.request("POST",url, params=data)
print("This is the telegram response")
print (response.text)
telegram_data= json. loads (response.text)
return telegram_data["ok"]
except Exception as e:
print("An error occurred in sending the alert Message via Telegram")
print(e)
return false​

Attachments:

Answers

Answered by prerita09
0

Answer:

try:

response-requests.request("POST",url, params=data)

print("This is the telegram response")

print (response.text)

telegram_data= json. loads (response.text)

return telegram_data["ok"]

except Exception as e:

print("An error occurred in sending the alert Message via Telegram")

print(e)

return false

take a clear pic

Mark as Brainlist and follow

Similar questions