AbstractHandler wrap method addition, updated start text content and added buttons, changed MessageData to InboundMessage, better logging, code quality improvements, changed env files naming

This commit is contained in:
miloszowi
2021-10-11 17:20:39 +02:00
parent fb223556cb
commit ea2fddff40
19 changed files with 142 additions and 115 deletions

View File

@@ -1,4 +1,4 @@
from config.credentials import BANNED_USERS
from config.envs import BANNED_USERS
from exception.actionNotAllowedException import ActionNotAllowedException
@@ -7,4 +7,4 @@ class AccessValidator:
@staticmethod
def validate(user_id: str) -> None:
if user_id in BANNED_USERS:
raise ActionNotAllowedException('You are banned')
raise ActionNotAllowedException('User is banned')