import requests url = "https://api.telegram.org/bot7865424971:AAF_Oe6lu8ZYAl5XIF1M6qU_8MK6GHWEll8/getMe" response = requests.get(url) print(response.json())