diff --git a/pyrogram/client/types/bots/callback_query.py b/pyrogram/client/types/bots/callback_query.py index 5d242162..c3c23333 100644 --- a/pyrogram/client/types/bots/callback_query.py +++ b/pyrogram/client/types/bots/callback_query.py @@ -59,7 +59,7 @@ class CallbackQuery(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", id: str, from_user: User, chat_instance: str, diff --git a/pyrogram/client/types/messages_and_media/animation.py b/pyrogram/client/types/messages_and_media/animation.py index ff5ab577..6b7f7cf7 100644 --- a/pyrogram/client/types/messages_and_media/animation.py +++ b/pyrogram/client/types/messages_and_media/animation.py @@ -59,7 +59,7 @@ class Animation(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", file_id: str, width: int, height: int, diff --git a/pyrogram/client/types/messages_and_media/audio.py b/pyrogram/client/types/messages_and_media/audio.py index 614c18fb..148ae805 100644 --- a/pyrogram/client/types/messages_and_media/audio.py +++ b/pyrogram/client/types/messages_and_media/audio.py @@ -59,7 +59,7 @@ class Audio(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", file_id: str, duration: int, thumb: PhotoSize = None, diff --git a/pyrogram/client/types/messages_and_media/contact.py b/pyrogram/client/types/messages_and_media/contact.py index 29f76bfc..16dd52bb 100644 --- a/pyrogram/client/types/messages_and_media/contact.py +++ b/pyrogram/client/types/messages_and_media/contact.py @@ -44,7 +44,7 @@ class Contact(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", phone_number: str, first_name: str, last_name: str = None, diff --git a/pyrogram/client/types/messages_and_media/document.py b/pyrogram/client/types/messages_and_media/document.py index 330474c4..db41df6c 100644 --- a/pyrogram/client/types/messages_and_media/document.py +++ b/pyrogram/client/types/messages_and_media/document.py @@ -50,7 +50,7 @@ class Document(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", file_id: str, thumb: PhotoSize = None, file_name: str = None, diff --git a/pyrogram/client/types/messages_and_media/location.py b/pyrogram/client/types/messages_and_media/location.py index b57efb46..fcdd5e31 100644 --- a/pyrogram/client/types/messages_and_media/location.py +++ b/pyrogram/client/types/messages_and_media/location.py @@ -35,7 +35,7 @@ class Location(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", longitude: float, latitude: float): super().__init__(client) diff --git a/pyrogram/client/types/messages_and_media/message.py b/pyrogram/client/types/messages_and_media/message.py index 13fb1b16..0dede950 100644 --- a/pyrogram/client/types/messages_and_media/message.py +++ b/pyrogram/client/types/messages_and_media/message.py @@ -210,11 +210,11 @@ class Message(PyrogramType): Messages sent from yourself to other chats are outgoing (*outgoing* is True). An exception is made for your own personal chat; messages sent there will be incoming. - matches (``List of regex Matches``, *optional*): + matches (List of regex Matches, *optional*): A list containing all `Match Objects `_ that match the text of this message. Only applicable when using :obj:`Filters.regex `. - command (``List of strings``, *optional*): + command (List of ``str``, *optional*): A list containing the command and its arguments, if any. E.g.: "/start 1 2 3" would produce ["start", "1", "2", "3"]. Only applicable when using :obj:`Filters.command `. @@ -228,7 +228,7 @@ class Message(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", message_id: int, date: int = None, chat: Chat = None, diff --git a/pyrogram/client/types/messages_and_media/message_entity.py b/pyrogram/client/types/messages_and_media/message_entity.py index 637d9fdd..7544424c 100644 --- a/pyrogram/client/types/messages_and_media/message_entity.py +++ b/pyrogram/client/types/messages_and_media/message_entity.py @@ -65,7 +65,7 @@ class MessageEntity(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", type: str, offset: int, length: int, diff --git a/pyrogram/client/types/messages_and_media/messages.py b/pyrogram/client/types/messages_and_media/messages.py index 55c4fde1..cd401c1b 100644 --- a/pyrogram/client/types/messages_and_media/messages.py +++ b/pyrogram/client/types/messages_and_media/messages.py @@ -38,7 +38,7 @@ class Messages(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", total_count: int, messages: List[Message]): super().__init__(client) diff --git a/pyrogram/client/types/messages_and_media/photo.py b/pyrogram/client/types/messages_and_media/photo.py index 6531d1b7..a52a7aa2 100644 --- a/pyrogram/client/types/messages_and_media/photo.py +++ b/pyrogram/client/types/messages_and_media/photo.py @@ -43,7 +43,7 @@ class Photo(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", id: str, date: int, sizes: List[PhotoSize]): diff --git a/pyrogram/client/types/messages_and_media/photo_size.py b/pyrogram/client/types/messages_and_media/photo_size.py index 0250d76b..7a4db1c2 100644 --- a/pyrogram/client/types/messages_and_media/photo_size.py +++ b/pyrogram/client/types/messages_and_media/photo_size.py @@ -43,7 +43,7 @@ class PhotoSize(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", file_id: str, width: int, height: int, diff --git a/pyrogram/client/types/messages_and_media/sticker.py b/pyrogram/client/types/messages_and_media/sticker.py index fcdf63e6..8b88e7bf 100644 --- a/pyrogram/client/types/messages_and_media/sticker.py +++ b/pyrogram/client/types/messages_and_media/sticker.py @@ -66,7 +66,7 @@ class Sticker(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", file_id: str, width: int, height: int, diff --git a/pyrogram/client/types/messages_and_media/user_profile_photos.py b/pyrogram/client/types/messages_and_media/user_profile_photos.py index dd850475..2bfd29c8 100644 --- a/pyrogram/client/types/messages_and_media/user_profile_photos.py +++ b/pyrogram/client/types/messages_and_media/user_profile_photos.py @@ -36,7 +36,7 @@ class UserProfilePhotos(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", total_count: int, photos: List[Photo]): super().__init__(client) diff --git a/pyrogram/client/types/messages_and_media/venue.py b/pyrogram/client/types/messages_and_media/venue.py index 20c2d6db..443f479a 100644 --- a/pyrogram/client/types/messages_and_media/venue.py +++ b/pyrogram/client/types/messages_and_media/venue.py @@ -46,7 +46,7 @@ class Venue(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", location: Location, title: str, address: str, diff --git a/pyrogram/client/types/messages_and_media/video.py b/pyrogram/client/types/messages_and_media/video.py index fe183bbd..2c476b39 100644 --- a/pyrogram/client/types/messages_and_media/video.py +++ b/pyrogram/client/types/messages_and_media/video.py @@ -59,7 +59,7 @@ class Video(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", file_id: str, width: int, height: int, diff --git a/pyrogram/client/types/messages_and_media/video_note.py b/pyrogram/client/types/messages_and_media/video_note.py index c9f23efb..718432fa 100644 --- a/pyrogram/client/types/messages_and_media/video_note.py +++ b/pyrogram/client/types/messages_and_media/video_note.py @@ -53,7 +53,7 @@ class VideoNote(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", file_id: str, length: int, duration: int, diff --git a/pyrogram/client/types/messages_and_media/voice.py b/pyrogram/client/types/messages_and_media/voice.py index c06b1741..b9f799b3 100644 --- a/pyrogram/client/types/messages_and_media/voice.py +++ b/pyrogram/client/types/messages_and_media/voice.py @@ -49,7 +49,7 @@ class Voice(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", file_id: str, duration: int, waveform: bytes = None, diff --git a/pyrogram/client/types/pyrogram_type.py b/pyrogram/client/types/pyrogram_type.py index 3c2babf8..f5502a72 100644 --- a/pyrogram/client/types/pyrogram_type.py +++ b/pyrogram/client/types/pyrogram_type.py @@ -52,7 +52,7 @@ class Encoder(JSONEncoder): return remove_none( OrderedDict( - [("_", "pyrogram:" + o.__class__.__name__)] + [("_", "pyrogram." + o.__class__.__name__)] + [i for i in content.items()] ) ) diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py index 914383ac..5b5a54a8 100644 --- a/pyrogram/client/types/user_and_chats/chat.py +++ b/pyrogram/client/types/user_and_chats/chat.py @@ -79,7 +79,7 @@ class Chat(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", id: int, type: str, title: str = None, diff --git a/pyrogram/client/types/user_and_chats/chat_member.py b/pyrogram/client/types/user_and_chats/chat_member.py index aaf39859..b778d4d8 100644 --- a/pyrogram/client/types/user_and_chats/chat_member.py +++ b/pyrogram/client/types/user_and_chats/chat_member.py @@ -83,7 +83,7 @@ class ChatMember(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", user: "pyrogram.User", status: str, until_date: int = None, diff --git a/pyrogram/client/types/user_and_chats/chat_members.py b/pyrogram/client/types/user_and_chats/chat_members.py index 7e79cd5f..838517ab 100644 --- a/pyrogram/client/types/user_and_chats/chat_members.py +++ b/pyrogram/client/types/user_and_chats/chat_members.py @@ -38,7 +38,7 @@ class ChatMembers(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", total_count: int, chat_members: List[ChatMember]): super().__init__(client) diff --git a/pyrogram/client/types/user_and_chats/chat_photo.py b/pyrogram/client/types/user_and_chats/chat_photo.py index f4ed0fe3..ad4b3151 100644 --- a/pyrogram/client/types/user_and_chats/chat_photo.py +++ b/pyrogram/client/types/user_and_chats/chat_photo.py @@ -37,7 +37,7 @@ class ChatPhoto(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", small_file_id: str, big_file_id: str): super().__init__(client) diff --git a/pyrogram/client/types/user_and_chats/dialog.py b/pyrogram/client/types/user_and_chats/dialog.py index 82dff29b..c001708f 100644 --- a/pyrogram/client/types/user_and_chats/dialog.py +++ b/pyrogram/client/types/user_and_chats/dialog.py @@ -48,7 +48,7 @@ class Dialog(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", chat: Chat, top_message: "pyrogram.Message", unread_messages_count: int, diff --git a/pyrogram/client/types/user_and_chats/dialogs.py b/pyrogram/client/types/user_and_chats/dialogs.py index 3f44ea4c..2492d5e2 100644 --- a/pyrogram/client/types/user_and_chats/dialogs.py +++ b/pyrogram/client/types/user_and_chats/dialogs.py @@ -38,7 +38,7 @@ class Dialogs(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", total_count: int, dialogs: List[Dialog]): super().__init__(client) diff --git a/pyrogram/client/types/user_and_chats/user.py b/pyrogram/client/types/user_and_chats/user.py index c3b733b0..354e8a09 100644 --- a/pyrogram/client/types/user_and_chats/user.py +++ b/pyrogram/client/types/user_and_chats/user.py @@ -72,7 +72,7 @@ class User(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", id: int, is_self: bool, is_contact: bool, diff --git a/pyrogram/client/types/user_and_chats/user_status.py b/pyrogram/client/types/user_and_chats/user_status.py index 4a62adc8..69c1921b 100644 --- a/pyrogram/client/types/user_and_chats/user_status.py +++ b/pyrogram/client/types/user_and_chats/user_status.py @@ -66,7 +66,7 @@ class UserStatus(PyrogramType): def __init__(self, *, - client: "pyrogram.Client", + client: "pyrogram.client.ext.BaseClient", user_id: int, online: bool = None, offline: bool = None,