This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Telegram/classes/holo_user.py

14 lines
566 B
Python
Raw Normal View History

2022-12-10 13:08:30 +02:00
from typing import Union
from pyrogram.types import User, ChatMember
2022-12-10 16:53:41 +02:00
from modules.database import col_users, col_context, col_warnings, col_applications, col_sponsorships
2022-12-10 13:08:30 +02:00
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")
2022-12-10 12:37:15 +02:00
class HoloUser():
2022-12-10 13:08:30 +02:00
def __init__(self, user: Union[User, ChatMember, int]) -> None:
pass