telegrambot / app.py
Dragdev's picture
Update app.py
5652266 verified
raw
history blame contribute delete
348 Bytes
import os
import subprocess
import streamlit as st
# Set up the environment (if needed)
os.environ["PYTHONUNBUFFERED"] = "1"
# Run the Gojo_Satoru bot from Powers module
def run_bot():
subprocess.run(["python3", "-m", "Powers"])
st.title("Telegram Bot")
if st.button("Start flash Bot"):
run_bot()
st.success("flash Bot is running!")