This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbot.py
72 lines (54 loc) · 1.92 KB
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from pyrogram import Client
from pyrogram import filters
from decouple import config
import session.session_gen
import handlers.cyberdrop
import handlers.bunkr
import handlers.start
import handlers.help
import handlers.streamdl
import handlers.streamul
import handlers.ping
log_chat_id = config("LOG_CHAT_ID")
app = session.session_gen.gen_session()
with app:
if log_chat_id != "None":
app.send_message(int(log_chat_id),"I'm Running...")
else:
pass
##--------------START---------------##
@app.on_message(filters.command("start"))
def welcome(client, message):
handlers.start.exec_welcome(client, message)
##--------------help---------------##
@app.on_message(filters.command("help"))
def send_help(client, message):
handlers.help.exec_help(client,message)
##---------------ping-------------------##
@app.on_message(filters.command("ping"))
def send_ping(client, message):
handlers.ping.exec_ping(client, message)
##----------CYBERDROP--------------##
@app.on_message(filters.command("cyberdrop"))
def send_cybermedia(client, message):
handlers.cyberdrop.exec_cyberdrop(client, message)
##------------BUNKR----------------##
@app.on_message(filters.command("bunkr"))
def send_bunkrmedia(client, message):
handlers.bunkr.exec_bunkr(client, message)
##------------streamtape---Download----##
@app.on_message(filters.command("streamdl"))
def send_streamtape(client, message):
if config("API_USERNAME") == "None" or config("API_PASSWORD") == "None":
pass
else:
handlers.streamdl.exec_streamtapedl(client, message)
##-----------Streamtape---Upload------##
@app.on_message(filters.video)
def upload_streamtape(client,message):
if config("API_USERNAME") == "None" or config("API_PASSWORD") == "None":
pass
else:
handlers.streamul.exec_streamtapeul(client, message)
if __name__ == "__main__":
app.run()