import gradio as gr import requests def test_telegram(): try: r = requests.get("https://api.telegram.org/bot7681366561:AAGp4yILQtJv24Q1tKucqxnerteDbvOJ1cM/getMe") return str(r.json()) except Exception as e: return f"Error: {str(e)}" demo = gr.Interface( fn=test_telegram, inputs=[], outputs="text", title="Telegram API Test" ) demo.launch()