Tele-demo / app.py
xTHExBEASTx's picture
Update app.py
b2049c2 verified
raw
history blame contribute delete
391 Bytes
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()