Spaces:
Runtime error
Runtime error
File size: 656 Bytes
68ed8a4 3514dce 68ed8a4 3514dce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import os
from pyrogram import Client, filters
from pyrogram.types import Message
plugins = dict(root = "plugins")
API_ID = int(os.environ.get("API_ID", 28074643))
API_HASH = os.environ.get("API_HASH", "2f3d441733660d0e3a65717818c28ea5")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "6990801595:AAE79xNVO1D_0SeWZlzYLE57Suwfp9GyKT8")
app = Client(name = "sb",
api_id = API_ID,
plugins = plugins,
api_hash = API_HASH,
bot_token = BOT_TOKEN)
@Client.on_message(filters.command("start"))
def send_message(client : Client, message : Message):
message.reply_text("Hellow")
app.run(host='0.0.0.0',port=7860) |