Create test_connection.py
Browse files- test_connection.py +7 -0
test_connection.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
|
| 3 |
+
try:
|
| 4 |
+
response = requests.get("https://api.telegram.org")
|
| 5 |
+
print(f"Status Code: {response.status_code}")
|
| 6 |
+
except Exception as e:
|
| 7 |
+
print(f"Error: {e}")
|