forked from taheralnoori/taherbottele
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pdf.py
49 lines (42 loc) · 1.11 KB
/
pdf.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
# !/USR/BIN/PYTHON
# -*- COADING: UTF-8 -*-
# COPYRIGHT ©️ 2021 NABILANAVAB
'''
_ _ ___ ___ ____ ™
| | | | _____ _____ | _ \| \| __|
| | | |__/ _ \ V / -_) | _/| |) | _|
|_| |___,\___/\_/\___| |_| |___/|_|
[Nabil A Navab]
Email: nabilanavab@gmail.com
Telegram: @nabilanavab
'''
import logging
from pyromod import listen
from Configs.dm import Config
from pyrogram import Client, idle
# LOGGING INFO: DEBUG
logging.basicConfig(
level = logging.DEBUG,
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
logging.getLogger("pyrogram").setLevel(logging.ERROR)
# GLOBAL VARIABLES
PDF = {} # save images for generating pdf
PROCESS = [] # to check current process
invite_link = None
# PLUGIN DIRECTORY
plugin = dict(
root = "plugins"
)
# PYROGRAM BOT AUTHENTIFICATION
bot = Client(
"ILovePDF",
plugins = plugin,
api_id = Config.API_ID,
parse_mode = "markdown",
api_hash = Config.API_HASH,
bot_token = Config.API_TOKEN
)
bot.start()
idle()
bot.stop()