mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-10-25 08:25:48 +00:00
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user