Upload 2 files
Browse files- main.py +12 -0
- requirements.txt +1 -0
main.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from bale import Bot, Message
|
| 2 |
+
|
| 3 |
+
bot = Bot(token= '468993083:SPJUSAxlCy8Ek8D237Le6NCGugmqgKtOh2dr3o36')
|
| 4 |
+
|
| 5 |
+
@bot.event
|
| 6 |
+
|
| 7 |
+
async def on_message(pm: Message):
|
| 8 |
+
if Message.content == 'سلام':
|
| 9 |
+
await pm.reply('سلام خوبی ؟')
|
| 10 |
+
else:
|
| 11 |
+
await pm.reply(pm.content)
|
| 12 |
+
bot.run()
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
python-bale-bot
|