From bd2a3fc81c153680054e1eede30c3248a9f4772d Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Sat, 10 Dec 2022 12:08:30 +0100 Subject: [PATCH] Init done --- classes/holo_user.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/classes/holo_user.py b/classes/holo_user.py index 308f291..73273be 100644 --- a/classes/holo_user.py +++ b/classes/holo_user.py @@ -1,2 +1,14 @@ +from typing import Union +from pyrogram.types import User, ChatMember +from modules.database import col_users, col_context, col_warnings, col_subscriptions + +class UserNotFoundError(Exception): + """HoloUser could not find user with such an ID in database""" + def __init__(self, user, user_id): + self.user = user + self.user_id = user_id + super().__init__(f"User of type {type(self.user)} with id {self.user_id} was not found") + class HoloUser(): - pass \ No newline at end of file + def __init__(self, user: Union[User, ChatMember, int]) -> None: + pass \ No newline at end of file