19 lines
570 B
Python
19 lines
570 B
Python
from telegram import MessageEntity
|
|
|
|
#types
|
|
PARSED_MESSAGEENTITIES = dict[MessageEntity, str]
|
|
|
|
#paths
|
|
CONFIG_FILE_PATH = 'app/config.json'
|
|
TASKS_DB_PATH = 'database/task.sqlite3'
|
|
|
|
#runtime constants
|
|
ANY_MENTION = [MessageEntity.MENTION, MessageEntity.TEXT_MENTION]
|
|
PERIODS = ['day','week','month','year','all'] #TODO put in constants, shared with text_commands
|
|
USERNAME_TO_USEROBJ_MAP = "username_to_userobj_map" #TODO transfer in config or constants
|
|
USERS = "userobj_set"
|
|
GET_ADMIN_FROM_API_REQUEST_COUNTDOWN = "get_administrators_countdown" # in context/chat_data[]
|
|
|
|
|
|
|