forked from AnnabelleTG/Annabelle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathannabelle.py
More file actions
34 lines (26 loc) · 978 Bytes
/
annabelle.py
File metadata and controls
34 lines (26 loc) · 978 Bytes
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
from pyrogram import Client, __version__
from config import *
import logging
art = """
_____ ___. .__ .__
/ _ \ ____ ____ _____ \_ |__ ____ | | | | ____
/ /_\ \ / \ / \\__ \ | __ \_/ __ \| | | | _/ __ \
/ | \ | \ | \/ __ \| \_\ \ ___/| |_| |_\ ___/
\____|__ /___| /___| (____ /___ /\___ >____/____/\___ >
\/ \/ \/ \/ \/ \/ \/
"""
class Annabelle(Client):
def __init__(self):
super().__init__(
SESSION_STRING,
api_id=API_ID,
api_hash=API_HASH,
plugins={"root": "annabelle/modules"},
)
async def start(self):
await super().start()
print(art)
logging.info(f"Anabelle with for Pyrogram v{__version__} (Layer {layer}) started")
async def stop(self, *args):
await super().stop()
logging.info("Anabelle stopped!")