Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@ import telebot
|
|
| 2 |
from fastapi import FastAPI, Request
|
| 3 |
import uvicorn
|
| 4 |
|
| 5 |
-
TOKEN = "
|
| 6 |
-
WEBHOOK_URL = "https://
|
| 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 |
-
|
|
|
|
| 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)
|