-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconfig.py
40 lines (27 loc) · 1.82 KB
/
config.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
import os
class config:
BOT_TOKEN = os.environ.get('BOT_TOKEN')
APP_ID = os.environ.get('APP_ID')
API_HASH = os.environ.get('API_HASH')
DATABASE_URL = os.environ.get('DATABASE_URL')
SUDO_USERS = os.environ.get('SUDO_USERS')
SUPPORT_CHAT_LINK = "t.me/moedyiu"
DOWNLOAD_DIRECTORY = "./downloads/"
class BotCommands:
Authorize = ['auth', 'start']
Revoke = ['revoke']
EmptyTrash = ['emptyTrash']
Proj = ['projects']
Cproj = ['newproject']
Delsas = ['delsas']
Sas = ['sas']
class Messages:
DOWNLOAD_TG_FILE = "🔒 **DOWNLOADING CREDENIAL FILE.**"
DOWNLOADED_SUCCESSFULLY = "🔒 **SUCCESSFULLY DOWNLOADED CREDENIAL FILE.**\n__Send /auth to authenticate.__"
NOT_AUTH = f"🔑 **No credentials found. Please enable the Drive API in:\nhttps://developers.google.com/drive/api/v3/quickstart/python\nand upload the json file as credentials.json**\n__Send /{BotCommands.Authorize[0]} to authenticate.__"
ALREADY_AUTH = "🔒 **Already authorized your Google Drive Account.**\n__Use /revoke to revoke the current account.__\n__Send me a direct link or File to Upload on Google Drive__"
FLOW_IS_NONE = f"❗ **Invalid Code**\n__Run {BotCommands.Authorize[0]} first.__"
AUTH_SUCCESSFULLY = '🔐 **Authorized Google Drive account Successfully.**'
INVALID_AUTH_CODE = '❗ **Invalid Code**\n__The code you have sent is invalid or already used before. Generate new one by the Authorization URL__'
AUTH_TEXT = "⛓️ **To Authorize your Google Drive account visit this [URL]({}) and send the generated code here.**\n__Visit the URL > Allow permissions > you will get a code > copy it > Send it here__"
REVOKED = f"🔓 **Revoked current logged account successfully.**\n__Use /{BotCommands.Authorize[0]} to authenticate again and use this bot.__"