Download app.py from Pezh/telo: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/Pezh/telo/resolve/main/app.py
- Command line
-
hf download hf://spaces/Pezh/telo/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Pezh/telo/resolve/main/app.py
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) | |
| 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() |