mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-25 19:38:31 +00:00
Reformat project
This commit is contained in:
parent
ad0f8284f6
commit
aa135ea457
@ -21,8 +21,9 @@ import struct
|
|||||||
from typing import List
|
from typing import List
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
import pyrogram
|
|
||||||
from pyrogram.api.types import PeerUser, PeerChat, PeerChannel
|
from pyrogram.api.types import PeerUser, PeerChat, PeerChannel
|
||||||
|
|
||||||
|
import pyrogram
|
||||||
from . import BaseClient
|
from . import BaseClient
|
||||||
from ...api import types
|
from ...api import types
|
||||||
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
|
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
import pyrogram
|
from pyrogram.api import functions
|
||||||
from pyrogram.api import functions, types
|
|
||||||
from ...ext import BaseClient
|
from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ from typing import List, Union
|
|||||||
|
|
||||||
from pyrogram.api import functions, types
|
from pyrogram.api import functions, types
|
||||||
from pyrogram.client.ext import utils
|
from pyrogram.client.ext import utils
|
||||||
|
|
||||||
from ...ext import BaseClient
|
from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ from typing import Union, List
|
|||||||
import pyrogram
|
import pyrogram
|
||||||
from pyrogram.api import functions, types
|
from pyrogram.api import functions, types
|
||||||
from pyrogram.client.ext import utils
|
from pyrogram.client.ext import utils
|
||||||
|
|
||||||
from ...ext import BaseClient
|
from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
from pyrogram.api import functions, types
|
from pyrogram.api import functions, types
|
||||||
|
|
||||||
from ...ext import BaseClient
|
from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
|
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
import pyrogram
|
from pyrogram.api import functions
|
||||||
from pyrogram.api import functions, types
|
|
||||||
from ...ext import BaseClient
|
from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,4 +16,4 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from .parser import Parser
|
from .parser import Parser
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from .memory_storage import MemoryStorage
|
|
||||||
from .file_storage import FileStorage
|
from .file_storage import FileStorage
|
||||||
|
from .memory_storage import MemoryStorage
|
||||||
from .storage import Storage
|
from .storage import Storage
|
||||||
|
@ -22,6 +22,7 @@ from pyrogram.api.types import (
|
|||||||
KeyboardButtonUrl, KeyboardButtonCallback,
|
KeyboardButtonUrl, KeyboardButtonCallback,
|
||||||
KeyboardButtonSwitchInline, KeyboardButtonGame
|
KeyboardButtonSwitchInline, KeyboardButtonGame
|
||||||
)
|
)
|
||||||
|
|
||||||
from .callback_game import CallbackGame
|
from .callback_game import CallbackGame
|
||||||
from ..object import Object
|
from ..object import Object
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from pyrogram.api.types import ReplyInlineMarkup, KeyboardButtonRow
|
from pyrogram.api.types import ReplyInlineMarkup, KeyboardButtonRow
|
||||||
|
|
||||||
from . import InlineKeyboardButton
|
from . import InlineKeyboardButton
|
||||||
from ..object import Object
|
from ..object import Object
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ from typing import List, Union
|
|||||||
|
|
||||||
from pyrogram.api.types import KeyboardButtonRow
|
from pyrogram.api.types import KeyboardButtonRow
|
||||||
from pyrogram.api.types import ReplyKeyboardMarkup as RawReplyKeyboardMarkup
|
from pyrogram.api.types import ReplyKeyboardMarkup as RawReplyKeyboardMarkup
|
||||||
|
|
||||||
from . import KeyboardButton
|
from . import KeyboardButton
|
||||||
from ..object import Object
|
from ..object import Object
|
||||||
|
|
||||||
|
@ -21,8 +21,9 @@ from datetime import datetime
|
|||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from typing import Type
|
from typing import Type
|
||||||
|
|
||||||
from pyrogram.api.core import TLObject
|
|
||||||
from pyrogram.api.types import RpcError as RawRPCError
|
from pyrogram.api.types import RpcError as RawRPCError
|
||||||
|
|
||||||
|
from pyrogram.api.core import TLObject
|
||||||
from .exceptions.all import exceptions
|
from .exceptions.all import exceptions
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@ from pyrogram.api import functions, types
|
|||||||
from pyrogram.api.core import TLObject, Long, Int
|
from pyrogram.api.core import TLObject, Long, Int
|
||||||
from pyrogram.connection import Connection
|
from pyrogram.connection import Connection
|
||||||
from pyrogram.crypto import AES, RSA, Prime
|
from pyrogram.crypto import AES, RSA, Prime
|
||||||
|
|
||||||
from .internals import MsgId
|
from .internals import MsgId
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
@ -16,9 +16,10 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from pyrogram.api.core import Message, MsgContainer, TLObject
|
|
||||||
from pyrogram.api.functions import Ping
|
from pyrogram.api.functions import Ping
|
||||||
from pyrogram.api.types import MsgsAck, HttpWait
|
from pyrogram.api.types import MsgsAck, HttpWait
|
||||||
|
|
||||||
|
from pyrogram.api.core import Message, MsgContainer, TLObject
|
||||||
from .msg_id import MsgId
|
from .msg_id import MsgId
|
||||||
from .seq_no import SeqNo
|
from .seq_no import SeqNo
|
||||||
|
|
||||||
|
@ -26,15 +26,15 @@ from os import urandom
|
|||||||
from queue import Queue
|
from queue import Queue
|
||||||
from threading import Event, Thread
|
from threading import Event, Thread
|
||||||
|
|
||||||
|
from pyrogram.api.all import layer
|
||||||
|
|
||||||
import pyrogram
|
import pyrogram
|
||||||
from pyrogram import __copyright__, __license__, __version__
|
from pyrogram import __copyright__, __license__, __version__
|
||||||
from pyrogram.api import functions, types, core
|
from pyrogram.api import functions, types, core
|
||||||
from pyrogram.api.all import layer
|
|
||||||
from pyrogram.api.core import Message, TLObject, MsgContainer, Long, FutureSalt, Int
|
from pyrogram.api.core import Message, TLObject, MsgContainer, Long, FutureSalt, Int
|
||||||
from pyrogram.connection import Connection
|
from pyrogram.connection import Connection
|
||||||
from pyrogram.crypto import AES, KDF
|
from pyrogram.crypto import AES, KDF
|
||||||
from pyrogram.errors import RPCError, InternalServerError, AuthKeyDuplicated
|
from pyrogram.errors import RPCError, InternalServerError, AuthKeyDuplicated
|
||||||
|
|
||||||
from .internals import MsgId, MsgFactory
|
from .internals import MsgId, MsgFactory
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user