aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorromangraef <roman.graef@gmail.com>2018-03-17 22:11:47 +0100
committerromangraef <roman.graef@gmail.com>2018-03-17 22:11:47 +0100
commit50afa23b9dc26f914522a55fe5cbb893d34ad27c (patch)
tree9711c076e4af283523f51fbd72ceb67bde4f5366 /main.py
parent473d84ec2c82932fa1c09e4b96d6e8198bbb71df (diff)
downloadtelegramuserbot-master.tar.gz
telegramuserbot-master.tar.bz2
telegramuserbot-master.zip
added todos as well as regex based command triggers.HEADmaster
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.py b/main.py
index 693f9d4..ebfec76 100644
--- a/main.py
+++ b/main.py
@@ -1,14 +1,15 @@
from pyrogram import Client
-from commands import handle_commands, load_commands
+from commands import handle_commands, load_modules, handle_match_scripts
def update_handler(client, update, users, chats):
handle_commands(client, update, users, chats)
+ handle_match_scripts(client, update, users, chats)
def main():
- load_commands()
+ load_modules()
client = Client(session_name="userbot")
client.set_update_handler(update_handler)
client.start()