Rename chat folder to peer

This commit is contained in:
Lonami Exo 2024-03-17 13:10:50 +01:00
parent 8267f5d590
commit d77efe3513
14 changed files with 18 additions and 18 deletions

View File

@ -5,7 +5,7 @@ from typing import TYPE_CHECKING, Optional, Self
from ...tl import abcs, functions, types
from ..client.messages import CherryPickedList
from ..types import Chat, Message
from ..types.chat import peer_id
from ..types.peer import peer_id
from .event import Event
if TYPE_CHECKING:

View File

@ -2,16 +2,6 @@ from .admin_right import AdminRight
from .album_builder import AlbumBuilder
from .async_list import AsyncList
from .callback_answer import CallbackAnswer
from .chat import (
Channel,
Chat,
ChatLike,
Group,
User,
build_chat_map,
expand_peer,
peer_id,
)
from .chat_restriction import ChatRestriction
from .dialog import Dialog
from .draft import Draft
@ -35,6 +25,16 @@ from .message import (
from .meta import NoPublicConstructor
from .participant import Participant
from .password_token import PasswordToken
from .peer import (
Channel,
Chat,
ChatLike,
Group,
User,
build_chat_map,
expand_peer,
peer_id,
)
from .recent_action import RecentAction
__all__ = [

View File

@ -5,10 +5,10 @@ from pathlib import Path
from typing import TYPE_CHECKING, Optional
from ...tl import abcs, functions, types
from .chat import ChatLike
from .file import InFileLike, try_get_url_path
from .message import Message, generate_random_id, parse_message
from .meta import NoPublicConstructor
from .peer import ChatLike
if TYPE_CHECKING:
from ..client.client import Client

View File

@ -3,10 +3,10 @@ from __future__ import annotations
from typing import TYPE_CHECKING, Optional, Self
from ...tl import abcs, types
from .chat import Chat, peer_id
from .draft import Draft
from .message import Message
from .meta import NoPublicConstructor
from .peer import Chat, peer_id
if TYPE_CHECKING:
from ..client.client import Client

View File

@ -6,9 +6,9 @@ from typing import TYPE_CHECKING, Optional, Self
from ...session import PackedChat
from ...tl import abcs, functions, types
from ..parsers import generate_html_message, generate_markdown_message
from .chat import Chat, expand_peer, peer_id
from .message import Message, generate_random_id
from .meta import NoPublicConstructor
from .peer import Chat, expand_peer, peer_id
if TYPE_CHECKING:
from ..client.client import Client

View File

@ -3,9 +3,9 @@ from __future__ import annotations
from typing import TYPE_CHECKING, Optional
from ...tl import abcs, functions, types
from .chat import ChatLike
from .message import Message, generate_random_id
from .meta import NoPublicConstructor
from .peer import ChatLike
if TYPE_CHECKING:
from ..client.client import Client

View File

@ -12,9 +12,9 @@ from ..parsers import (
parse_markdown_message,
)
from .buttons import Button, as_concrete_row, create_button
from .chat import Chat, ChatLike, expand_peer, peer_id
from .file import File
from .meta import NoPublicConstructor
from .peer import Chat, ChatLike, expand_peer, peer_id
if TYPE_CHECKING:
from ..client.client import Client

View File

@ -6,9 +6,9 @@ from typing import TYPE_CHECKING, Optional, Self, Sequence
from ...session import PackedChat
from ...tl import abcs, types
from .admin_right import AdminRight
from .chat import Chat, User, peer_id
from .chat_restriction import ChatRestriction
from .meta import NoPublicConstructor
from .peer import Chat, User, peer_id
if TYPE_CHECKING:
from ..client.client import Client

View File

@ -1,6 +1,6 @@
from ...tl import abcs, types
from .chat import Chat
from .meta import NoPublicConstructor
from .peer import Chat
class RecentAction(metaclass=NoPublicConstructor):