Init done
This commit is contained in:
parent
4be1379dca
commit
bd2a3fc81c
@ -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():
|
||||
def __init__(self, user: Union[User, ChatMember, int]) -> None:
|
||||
pass
|
Reference in New Issue
Block a user