21 lines
504 B
Python
21 lines
504 B
Python
from .config import (SESSION_NAME, API_ID, API_HASH,
|
|
BOT_TOKEN, APP_PLUGINS)
|
|
from pyrogram import Client
|
|
|
|
|
|
class App(Client):
|
|
def __init__(self):
|
|
super().__init__(
|
|
session_name=SESSION_NAME,
|
|
api_id=API_ID,
|
|
api_hash=API_HASH,
|
|
bot_token=BOT_TOKEN,
|
|
plugins=dict(root=APP_PLUGINS)
|
|
)
|
|
|
|
def start(self, *args):
|
|
super().start()
|
|
|
|
def stop(self, *args):
|
|
super().stop()
|