Spaces:
Sleeping
Sleeping
AmirMahdi12334
commited on
Commit
•
68ed8a4
1
Parent(s):
5d6f14a
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from pyrogram import Client, filters
|
3 |
+
from pyrogram.types import Message
|
4 |
+
|
5 |
+
plugins = dict(root = "plugins")
|
6 |
+
|
7 |
+
API_ID = int(os.environ.get("API_ID", 28074643))
|
8 |
+
API_HASH = os.environ.get("API_HASH", "2f3d441733660d0e3a65717818c28ea5")
|
9 |
+
BOT_TOKEN = os.environ.get("BOT_TOKEN", "6643515654:AAG5k_S4lO0B3kngNI3we5YP5LwB8rfx8Hw")
|
10 |
+
|
11 |
+
app = Client(name = "sb",
|
12 |
+
api_id = API_ID,
|
13 |
+
plugins = plugins,
|
14 |
+
api_hash = API_HASH,
|
15 |
+
bot_token = BOT_TOKEN)
|
16 |
+
|
17 |
+
@Client.on_message(filters.command("start"))
|
18 |
+
def send_message(client : Client, message : Message):
|
19 |
+
message.reply_text("Hellow")
|
20 |
+
|
21 |
+
app.run()
|