AstraOS commited on
Commit
af77e3b
·
verified ·
1 Parent(s): 8dfff44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -2,8 +2,8 @@ import telebot
2
  from fastapi import FastAPI, Request
3
  import uvicorn
4
 
5
- TOKEN = "YOUR_BOT_TOKEN"
6
- WEBHOOK_URL = "https://yourdomain.com/webhook" # Replace with your actual webhook URL
7
 
8
  bot = telebot.TeleBot(TOKEN, parse_mode="HTML")
9
 
@@ -35,5 +35,5 @@ async def on_shutdown():
35
  def start_command(message):
36
  bot.reply_to(message, "Hello! I am a FastAPI Telegram bot!")
37
 
38
- if __name__ == "__main__":
39
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
2
  from fastapi import FastAPI, Request
3
  import uvicorn
4
 
5
+ TOKEN = "6655373829:AAGduLdLyNx7zUtxH73Sp3Z1vHKS35tV9WU"
6
+ WEBHOOK_URL = "https://astraos-testing.hf.space/webhook" # Replace with your actual webhook URL
7
 
8
  bot = telebot.TeleBot(TOKEN, parse_mode="HTML")
9
 
 
35
  def start_command(message):
36
  bot.reply_to(message, "Hello! I am a FastAPI Telegram bot!")
37
 
38
+ # if __name__ == "__main__":
39
+ # uvicorn.run(app, host="0.0.0.0", port=7860)