mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Rename chat folder to peer
This commit is contained in:
parent
8267f5d590
commit
d77efe3513
|
@ -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:
|
||||
|
|
|
@ -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__ = [
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user