Spaces:
Paused

telo / app.py
Pezh's picture
Create app.py
dcadc6d verified
Raw History Blame Contribute Delete
507 Bytes
import telebot
import streamlit as st
import requests
# Replace 'YOUR_BOT_TOKEN' with your actual bot token
BOT_TOKEN = '6913298289:AAHWO-XQ3UqnDjDS6uQ_fLqWN65zrj1x6Ao'
# Create a telebot instance
bot = telebot.TeleBot(BOT_TOKEN)
@bot.message_handler(func=lambda message: True)
def reply_to_message(message):
bot.reply_to(message, 'Hi babes, what do you want?')
def start_bot():
st.write("Bot started!")
bot.polling()
st.title("Telegram Bot App")
if st.button("Start Bot"):
start_bot()