29 lines
865 B
Python
29 lines
865 B
Python
import logging, asyncio
|
|
from telethon import events
|
|
from telethon.tl.custom import Button
|
|
from os.path import isfile
|
|
from time import time
|
|
import httpx
|
|
import re
|
|
import sqlite3
|
|
from os import unlink
|
|
from random import randint
|
|
from telethon.errors.rpcerrorlist import MessageNotModifiedError, UserIsBlockedError
|
|
from telethon.utils import get_display_name
|
|
from config import *
|
|
from judge_prompt import judge
|
|
import handlers.welcome
|
|
import handlers.info
|
|
import handlers.prompt
|
|
import handlers.help
|
|
|
|
if __name__ == '__main__':
|
|
|
|
for x in handlers.welcome.handler: client.add_event_handler(x)
|
|
for x in handlers.info.handler: client.add_event_handler(x)
|
|
for x in handlers.prompt.handler: client.add_event_handler(x)
|
|
for x in handlers.help.handler: client.add_event_handler(x)
|
|
client.start()
|
|
client.flood_sleep_threshold = 24*60*60
|
|
client.run_until_disconnected()
|