diff --git a/pyrogram/client/types/bots/callback_query.py b/pyrogram/client/types/bots/callback_query.py index e586c736..c6c3ee66 100644 --- a/pyrogram/client/types/bots/callback_query.py +++ b/pyrogram/client/types/bots/callback_query.py @@ -56,8 +56,16 @@ class CallbackQuery(PyrogramType): """ - def __init__(self, *, client, id: str, from_user, chat_instance: str, message=None, - inline_message_id: str = None, data: bytes = None, game_short_name: str = None): + def __init__(self, + *, + client, + id: str, + from_user, + chat_instance: str, + message=None, + inline_message_id: str = None, + data: bytes = None, + game_short_name: str = None): super().__init__(client) self.id = id diff --git a/pyrogram/client/types/bots/force_reply.py b/pyrogram/client/types/bots/force_reply.py index eb3a8729..0c15b92a 100644 --- a/pyrogram/client/types/bots/force_reply.py +++ b/pyrogram/client/types/bots/force_reply.py @@ -33,7 +33,8 @@ class ForceReply(PyrogramType): 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message. """ - def __init__(self, selective: bool = None): + def __init__(self, + selective: bool = None): super().__init__(None) self.selective = selective diff --git a/pyrogram/client/types/bots/inline_keyboard_button.py b/pyrogram/client/types/bots/inline_keyboard_button.py index 0fd1355a..655e78f4 100644 --- a/pyrogram/client/types/bots/inline_keyboard_button.py +++ b/pyrogram/client/types/bots/inline_keyboard_button.py @@ -53,8 +53,12 @@ class InlineKeyboardButton(PyrogramType): # TODO: Add callback_game and pay fields - def __init__(self, text: str, callback_data: bytes = None, url: str = None, - switch_inline_query: str = None, switch_inline_query_current_chat: str = None): + def __init__(self, + text: str, + callback_data: bytes = None, + url: str = None, + switch_inline_query: str = None, + switch_inline_query_current_chat: str = None): super().__init__(None) self.text = text diff --git a/pyrogram/client/types/bots/inline_keyboard_markup.py b/pyrogram/client/types/bots/inline_keyboard_markup.py index b4eb936f..c13cc096 100644 --- a/pyrogram/client/types/bots/inline_keyboard_markup.py +++ b/pyrogram/client/types/bots/inline_keyboard_markup.py @@ -29,7 +29,8 @@ class InlineKeyboardMarkup(PyrogramType): List of button rows, each represented by a List of InlineKeyboardButton objects. """ - def __init__(self, inline_keyboard: list): + def __init__(self, + inline_keyboard: list): super().__init__(None) self.inline_keyboard = inline_keyboard diff --git a/pyrogram/client/types/bots/keyboard_button.py b/pyrogram/client/types/bots/keyboard_button.py index ceb7a2b7..4b025375 100644 --- a/pyrogram/client/types/bots/keyboard_button.py +++ b/pyrogram/client/types/bots/keyboard_button.py @@ -40,7 +40,10 @@ class KeyboardButton(PyrogramType): Available in private chats only. """ - def __init__(self, text: str, request_contact: bool = None, request_location: bool = None): + def __init__(self, + text: str, + request_contact: bool = None, + request_location: bool = None): super().__init__(None) self.text = text diff --git a/pyrogram/client/types/bots/reply_keyboard_markup.py b/pyrogram/client/types/bots/reply_keyboard_markup.py index fb0817ac..a8378614 100644 --- a/pyrogram/client/types/bots/reply_keyboard_markup.py +++ b/pyrogram/client/types/bots/reply_keyboard_markup.py @@ -47,7 +47,10 @@ class ReplyKeyboardMarkup(PyrogramType): select the new language. Other users in the group don't see the keyboard. """ - def __init__(self, keyboard: list, resize_keyboard: bool = None, one_time_keyboard: bool = None, + def __init__(self, + keyboard: list, + resize_keyboard: bool = None, + one_time_keyboard: bool = None, selective: bool = None): super().__init__(None) diff --git a/pyrogram/client/types/bots/reply_keyboard_remove.py b/pyrogram/client/types/bots/reply_keyboard_remove.py index 7f82fd6e..def9917c 100644 --- a/pyrogram/client/types/bots/reply_keyboard_remove.py +++ b/pyrogram/client/types/bots/reply_keyboard_remove.py @@ -35,7 +35,8 @@ class ReplyKeyboardRemove(PyrogramType): keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet. """ - def __init__(self, selective: bool = None): + def __init__(self, + selective: bool = None): super().__init__(None) self.selective = selective diff --git a/pyrogram/client/types/input_media/input_media.py b/pyrogram/client/types/input_media/input_media.py index 611d5865..7a380f89 100644 --- a/pyrogram/client/types/input_media/input_media.py +++ b/pyrogram/client/types/input_media/input_media.py @@ -18,7 +18,10 @@ class InputMedia: - def __init__(self, media: str, caption: str, parse_mode: str): + def __init__(self, + media: str, + caption: str, + parse_mode: str): self.media = media self.caption = caption self.parse_mode = parse_mode diff --git a/pyrogram/client/types/input_media/input_media_animation.py b/pyrogram/client/types/input_media/input_media_animation.py index cc3d9ad0..0e7b2433 100644 --- a/pyrogram/client/types/input_media/input_media_animation.py +++ b/pyrogram/client/types/input_media/input_media_animation.py @@ -52,8 +52,14 @@ class InputMediaAnimation(InputMedia): Animation duration. """ - def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", width: int = 0, - height: int = 0, duration: int = 0): + def __init__(self, + media: str, + thumb: str = None, + caption: str = "", + parse_mode: str = "", + width: int = 0, + height: int = 0, + duration: int = 0): super().__init__(media, caption, parse_mode) self.thumb = thumb diff --git a/pyrogram/client/types/input_media/input_media_audio.py b/pyrogram/client/types/input_media/input_media_audio.py index 7c1b6072..455c2292 100644 --- a/pyrogram/client/types/input_media/input_media_audio.py +++ b/pyrogram/client/types/input_media/input_media_audio.py @@ -53,8 +53,14 @@ class InputMediaAudio(InputMedia): Title of the audio """ - def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", duration: int = 0, - performer: int = "", title: str = ""): + def __init__(self, + media: str, + thumb: str = None, + caption: str = "", + parse_mode: str = "", + duration: int = 0, + performer: int = "", + title: str = ""): super().__init__(media, caption, parse_mode) self.thumb = thumb diff --git a/pyrogram/client/types/input_media/input_media_document.py b/pyrogram/client/types/input_media/input_media_document.py index 267abbde..08fcae5b 100644 --- a/pyrogram/client/types/input_media/input_media_document.py +++ b/pyrogram/client/types/input_media/input_media_document.py @@ -43,7 +43,11 @@ class InputMediaDocument(InputMedia): Defaults to Markdown. """ - def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = ""): + def __init__(self, + media: str, + thumb: str = None, + caption: str = "", + parse_mode: str = ""): super().__init__(media, caption, parse_mode) self.thumb = thumb diff --git a/pyrogram/client/types/input_media/input_media_photo.py b/pyrogram/client/types/input_media/input_media_photo.py index f5af9c89..c8cdccb8 100644 --- a/pyrogram/client/types/input_media/input_media_photo.py +++ b/pyrogram/client/types/input_media/input_media_photo.py @@ -39,5 +39,8 @@ class InputMediaPhoto(InputMedia): Defaults to Markdown. """ - def __init__(self, media: str, caption: str = "", parse_mode: str = ""): + def __init__(self, + media: str, + caption: str = "", + parse_mode: str = ""): super().__init__(media, caption, parse_mode) diff --git a/pyrogram/client/types/input_media/input_media_video.py b/pyrogram/client/types/input_media/input_media_video.py index 1884ea8d..955cf633 100644 --- a/pyrogram/client/types/input_media/input_media_video.py +++ b/pyrogram/client/types/input_media/input_media_video.py @@ -57,8 +57,15 @@ class InputMediaVideo(InputMedia): Pass True, if the uploaded video is suitable for streaming. """ - def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", width: int = 0, - height: int = 0, duration: int = 0, supports_streaming: bool = True): + def __init__(self, + media: str, + thumb: str = None, + caption: str = "", + parse_mode: str = "", + width: int = 0, + height: int = 0, + duration: int = 0, + supports_streaming: bool = True): super().__init__(media, caption, parse_mode) self.thumb = thumb diff --git a/pyrogram/client/types/input_media/input_phone_contact.py b/pyrogram/client/types/input_media/input_phone_contact.py index 0e61c006..eacecaf8 100644 --- a/pyrogram/client/types/input_media/input_phone_contact.py +++ b/pyrogram/client/types/input_media/input_phone_contact.py @@ -35,10 +35,16 @@ class InputPhoneContact: Contact's last name """ - def __init__(self, phone: str, first_name: str, last_name: str = ""): + def __init__(self, + phone: str, + first_name: str, + last_name: str = ""): pass - def __new__(cls, phone: str, first_name: str, last_name: str = ""): + def __new__(cls, + phone: str, + first_name: str, + last_name: str = ""): return RawInputPhoneContact( client_id=MsgId(), phone="+" + phone.strip("+"), diff --git a/pyrogram/client/types/messages_and_media/animation.py b/pyrogram/client/types/messages_and_media/animation.py index 45beefc3..9f1e5734 100644 --- a/pyrogram/client/types/messages_and_media/animation.py +++ b/pyrogram/client/types/messages_and_media/animation.py @@ -56,8 +56,18 @@ class Animation(PyrogramType): Date the animation was sent in Unix time. """ - def __init__(self, *, client, file_id: str, width: int, height: int, duration: int, thumb=None, - file_name: str = None, mime_type: str = None, file_size: int = None, date: int = None): + def __init__(self, + *, + client, + file_id: str, + width: int, + height: int, + duration: int, + thumb=None, + file_name: str = None, + mime_type: str = None, + file_size: int = None, + date: int = None): super().__init__(client) self.file_id = file_id diff --git a/pyrogram/client/types/messages_and_media/audio.py b/pyrogram/client/types/messages_and_media/audio.py index 9d001615..dfcfd9fa 100644 --- a/pyrogram/client/types/messages_and_media/audio.py +++ b/pyrogram/client/types/messages_and_media/audio.py @@ -56,8 +56,17 @@ class Audio(PyrogramType): Title of the audio as defined by sender or by audio tags. """ - def __init__(self, *, client, file_id: str, duration: int, thumb=None, file_name: str = None, - mime_type: str = None, file_size: int = None, date: int = None, performer: str = None, + def __init__(self, + *, + client, + file_id: str, + duration: int, + thumb=None, + file_name: str = None, + mime_type: str = None, + file_size: int = None, + date: int = None, + performer: str = None, title: str = None): super().__init__(client) diff --git a/pyrogram/client/types/messages_and_media/contact.py b/pyrogram/client/types/messages_and_media/contact.py index 2195df45..bcff7961 100644 --- a/pyrogram/client/types/messages_and_media/contact.py +++ b/pyrogram/client/types/messages_and_media/contact.py @@ -40,7 +40,13 @@ class Contact(PyrogramType): Additional data about the contact in the form of a vCard. """ - def __init__(self, *, client, phone_number: str, first_name: str, last_name: str = None, user_id: int = None, + def __init__(self, + *, + client, + phone_number: str, + first_name: str, + last_name: str = None, + user_id: int = None, vcard: str = None): super().__init__(client) diff --git a/pyrogram/client/types/messages_and_media/document.py b/pyrogram/client/types/messages_and_media/document.py index 6d124e2a..dd95846a 100644 --- a/pyrogram/client/types/messages_and_media/document.py +++ b/pyrogram/client/types/messages_and_media/document.py @@ -47,8 +47,15 @@ class Document(PyrogramType): Date the document was sent in Unix time. """ - def __init__(self, *, client, file_id: str, thumb=None, file_name: str = None, mime_type: str = None, - file_size: int = None, date: int = None): + def __init__(self, + *, + client, + file_id: str, + thumb=None, + file_name: str = None, + mime_type: str = None, + file_size: int = None, + date: int = None): super().__init__(client) self.file_id = file_id diff --git a/pyrogram/client/types/messages_and_media/location.py b/pyrogram/client/types/messages_and_media/location.py index 3f5bb059..82eb3d1d 100644 --- a/pyrogram/client/types/messages_and_media/location.py +++ b/pyrogram/client/types/messages_and_media/location.py @@ -31,7 +31,7 @@ class Location(PyrogramType): Latitude as defined by sender. """ - def __init__(self, *, client, longitude: float, latitude: float, ): + def __init__(self, *, client, longitude: float, latitude: float): super().__init__(client) self.longitude = longitude diff --git a/pyrogram/client/types/messages_and_media/message.py b/pyrogram/client/types/messages_and_media/message.py index 00567491..e4b15357 100644 --- a/pyrogram/client/types/messages_and_media/message.py +++ b/pyrogram/client/types/messages_and_media/message.py @@ -224,18 +224,59 @@ class Message(PyrogramType): # TODO: Add game missing field. Also invoice, successful_payment, connected_website - def __init__(self, *, client, message_id: int, date: int = None, chat=None, from_user=None, forward_from=None, - forward_from_chat=None, forward_from_message_id: int = None, forward_signature: str = None, - forward_date: int = None, reply_to_message=None, mentioned=None, empty=None, service=None, media=None, - edit_date: int = None, media_group_id: str = None, author_signature: str = None, text: str = None, - entities: list = None, caption_entities: list = None, audio=None, document=None, photo=None, - sticker=None, animation=None, video=None, voice=None, video_note=None, caption: str = None, - contact=None, location=None, venue=None, web_page=None, new_chat_members: list = None, - left_chat_member=None, new_chat_title: str = None, new_chat_photo=None, delete_chat_photo: bool = None, - group_chat_created: bool = None, supergroup_chat_created: bool = None, - channel_chat_created: bool = None, migrate_to_chat_id: int = None, migrate_from_chat_id: int = None, - pinned_message=None, views: int = None, via_bot=None, outgoing: bool = None, matches: list = None, - command: list = None, reply_markup=None): + def __init__(self, + *, + client, + message_id: int, + date: int = None, + chat=None, + from_user=None, + forward_from=None, + forward_from_chat=None, + forward_from_message_id: int = None, + forward_signature: str = None, + forward_date: int = None, + reply_to_message=None, + mentioned=None, + empty=None, + service=None, + media=None, + edit_date: int = None, + media_group_id: str = None, + author_signature: str = None, + text: str = None, + entities: list = None, + caption_entities: list = None, + audio=None, + document=None, + photo=None, + sticker=None, + animation=None, + video=None, + voice=None, + video_note=None, + caption: str = None, + contact=None, + location=None, + venue=None, + web_page=None, + new_chat_members: list = None, + left_chat_member=None, + new_chat_title: str = None, + new_chat_photo=None, + delete_chat_photo: bool = None, + group_chat_created: bool = None, + supergroup_chat_created: bool = None, + channel_chat_created: bool = None, + migrate_to_chat_id: int = None, + migrate_from_chat_id: int = None, + pinned_message=None, + views: int = None, + via_bot=None, + outgoing: bool = None, + matches: list = None, + command: list = None, + reply_markup=None): super().__init__(client) self.message_id = message_id diff --git a/pyrogram/client/types/messages_and_media/message_entity.py b/pyrogram/client/types/messages_and_media/message_entity.py index 9f894f75..325006af 100644 --- a/pyrogram/client/types/messages_and_media/message_entity.py +++ b/pyrogram/client/types/messages_and_media/message_entity.py @@ -61,7 +61,14 @@ class MessageEntity(PyrogramType): types.MessageEntityPhone.ID: "phone_number" } - def __init__(self, *, client, type: str, offset: int, length: int, url: str = None, user=None): + def __init__(self, + *, + client, + type: str, + offset: int, + length: int, + url: str = None, + user=None): super().__init__(client) self.type = type diff --git a/pyrogram/client/types/messages_and_media/messages.py b/pyrogram/client/types/messages_and_media/messages.py index 6d2d666a..da1f595c 100644 --- a/pyrogram/client/types/messages_and_media/messages.py +++ b/pyrogram/client/types/messages_and_media/messages.py @@ -33,7 +33,11 @@ class Messages(PyrogramType): Requested messages. """ - def __init__(self, *, client, total_count: int, messages: list): + def __init__(self, + *, + client, + total_count: int, + messages: list): super().__init__(client) self.total_count = total_count diff --git a/pyrogram/client/types/messages_and_media/photo.py b/pyrogram/client/types/messages_and_media/photo.py index 01edd0fc..61ae7b53 100644 --- a/pyrogram/client/types/messages_and_media/photo.py +++ b/pyrogram/client/types/messages_and_media/photo.py @@ -39,7 +39,12 @@ class Photo(PyrogramType): Available sizes of this photo. """ - def __init__(self, *, client, id: str, date: int, sizes: list): + def __init__(self, + *, + client, + id: str, + date: int, + sizes: list): super().__init__(client) self.id = id diff --git a/pyrogram/client/types/messages_and_media/photo_size.py b/pyrogram/client/types/messages_and_media/photo_size.py index efc9def9..f6a8cb76 100644 --- a/pyrogram/client/types/messages_and_media/photo_size.py +++ b/pyrogram/client/types/messages_and_media/photo_size.py @@ -40,7 +40,13 @@ class PhotoSize(PyrogramType): File size. """ - def __init__(self, *, client, file_id: str, width: int, height: int, file_size: int): + def __init__(self, + *, + client, + file_id: str, + width: int, + height: int, + file_size: int): super().__init__(client) self.file_id = file_id diff --git a/pyrogram/client/types/messages_and_media/sticker.py b/pyrogram/client/types/messages_and_media/sticker.py index 9892694a..16228d0e 100644 --- a/pyrogram/client/types/messages_and_media/sticker.py +++ b/pyrogram/client/types/messages_and_media/sticker.py @@ -63,9 +63,20 @@ class Sticker(PyrogramType): # TODO: Add mask position - def __init__(self, *, client, file_id: str, width: int, height: int, thumb=None, file_name: str = None, - mime_type: str = None, file_size: int = None, date: int = None, emoji: str = None, - set_name: str = None, mask_position=None): + def __init__(self, + *, + client, + file_id: str, + width: int, + height: int, + thumb=None, + file_name: str = None, + mime_type: str = None, + file_size: int = None, + date: int = None, + emoji: str = None, + set_name: str = None, + mask_position=None): super().__init__(client) self.file_id = file_id 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 23b3200c..9f0998b1 100644 --- a/pyrogram/client/types/messages_and_media/user_profile_photos.py +++ b/pyrogram/client/types/messages_and_media/user_profile_photos.py @@ -31,7 +31,11 @@ class UserProfilePhotos(PyrogramType): Requested profile pictures. """ - def __init__(self, *, client, total_count: int, photos: list): + def __init__(self, + *, + client, + total_count: int, + photos: list): super().__init__(client) self.total_count = total_count diff --git a/pyrogram/client/types/messages_and_media/venue.py b/pyrogram/client/types/messages_and_media/venue.py index c206a2a0..a1fb372e 100644 --- a/pyrogram/client/types/messages_and_media/venue.py +++ b/pyrogram/client/types/messages_and_media/venue.py @@ -43,7 +43,13 @@ class Venue(PyrogramType): """ - def __init__(self, *, client, location, title: str, address: str, foursquare_id: str = None, + def __init__(self, + *, + client, + location, + title: str, + address: str, + foursquare_id: str = None, foursquare_type: str = None): super().__init__(client) diff --git a/pyrogram/client/types/messages_and_media/video.py b/pyrogram/client/types/messages_and_media/video.py index 7d995ea8..39b29e64 100644 --- a/pyrogram/client/types/messages_and_media/video.py +++ b/pyrogram/client/types/messages_and_media/video.py @@ -56,8 +56,18 @@ class Video(PyrogramType): Date the video was sent in Unix time. """ - def __init__(self, *, client, file_id: str, width: int, height: int, duration: int, thumb=None, - file_name: str = None, mime_type: str = None, file_size: int = None, date: int = None): + def __init__(self, + *, + client, + file_id: str, + width: int, + height: int, + duration: int, + thumb=None, + file_name: str = None, + mime_type: str = None, + file_size: int = None, + date: int = None): super().__init__(client) self.file_id = file_id diff --git a/pyrogram/client/types/messages_and_media/video_note.py b/pyrogram/client/types/messages_and_media/video_note.py index 688bca19..103bab76 100644 --- a/pyrogram/client/types/messages_and_media/video_note.py +++ b/pyrogram/client/types/messages_and_media/video_note.py @@ -50,8 +50,16 @@ class VideoNote(PyrogramType): Date the video note was sent in Unix time. """ - def __init__(self, *, client, file_id: str, length: int, duration: int, thumb=None, mime_type: str = None, - file_size: int = None, date: int = None): + def __init__(self, + *, + client, + file_id: str, + length: int, + duration: int, + thumb=None, + mime_type: str = None, + file_size: int = None, + date: int = None): super().__init__(client) self.file_id = file_id diff --git a/pyrogram/client/types/messages_and_media/voice.py b/pyrogram/client/types/messages_and_media/voice.py index cce70a31..e3ebd2e2 100644 --- a/pyrogram/client/types/messages_and_media/voice.py +++ b/pyrogram/client/types/messages_and_media/voice.py @@ -46,8 +46,15 @@ class Voice(PyrogramType): Date the voice was sent in Unix time. """ - def __init__(self, *, client, file_id: str, duration: int, waveform: bytes = None, mime_type: str = None, - file_size: int = None, date: int = None): + def __init__(self, + *, + client, + file_id: str, + duration: int, + waveform: bytes = None, + mime_type: str = None, + file_size: int = None, + date: int = None): super().__init__(client) self.file_id = file_id diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py index b9d0d796..ddaa59dd 100644 --- a/pyrogram/client/types/user_and_chats/chat.py +++ b/pyrogram/client/types/user_and_chats/chat.py @@ -76,10 +76,24 @@ class Chat(PyrogramType): The reason why this chat might be unavailable to some users. """ - def __init__(self, *, client, id: int, type: str, title: str = None, username: str = None, - first_name: str = None, last_name: str = None, all_members_are_administrators: bool = None, photo=None, - description: str = None, invite_link: str = None, pinned_message=None, sticker_set_name: str = None, - can_set_sticker_set: bool = None, members_count: int = None, restriction_reason: str = None): + def __init__(self, + *, + client, + id: int, + type: str, + title: str = None, + username: str = None, + first_name: str = None, + last_name: str = None, + all_members_are_administrators: bool = None, + photo=None, + description: str = None, + invite_link: str = None, + pinned_message=None, + sticker_set_name: str = None, + can_set_sticker_set: bool = None, + members_count: int = None, + restriction_reason: str = None): super().__init__(client) self.id = id diff --git a/pyrogram/client/types/user_and_chats/chat_member.py b/pyrogram/client/types/user_and_chats/chat_member.py index 27eeb897..50f44bad 100644 --- a/pyrogram/client/types/user_and_chats/chat_member.py +++ b/pyrogram/client/types/user_and_chats/chat_member.py @@ -79,11 +79,24 @@ class ChatMember(PyrogramType): Restricted only. True, if user may add web page previews to his messages, implies can_send_media_messages. """ - def __init__(self, *, client, user, status: str, until_date: int = None, can_be_edited: bool = None, - can_change_info: bool = None, can_post_messages: bool = None, can_edit_messages: bool = None, - can_delete_messages: bool = None, can_invite_users: bool = None, can_restrict_members: bool = None, - can_pin_messages: bool = None, can_promote_members: bool = None, can_send_messages: bool = None, - can_send_media_messages: bool = None, can_send_other_messages: bool = None, + def __init__(self, + *, + client, + user, + status: str, + until_date: int = None, + can_be_edited: bool = None, + can_change_info: bool = None, + can_post_messages: bool = None, + can_edit_messages: bool = None, + can_delete_messages: bool = None, + can_invite_users: bool = None, + can_restrict_members: bool = None, + can_pin_messages: bool = None, + can_promote_members: bool = None, + can_send_messages: bool = None, + can_send_media_messages: bool = None, + can_send_other_messages: bool = None, can_add_web_page_previews: bool = None): super().__init__(client) diff --git a/pyrogram/client/types/user_and_chats/chat_members.py b/pyrogram/client/types/user_and_chats/chat_members.py index ba28b23d..5fcddecf 100644 --- a/pyrogram/client/types/user_and_chats/chat_members.py +++ b/pyrogram/client/types/user_and_chats/chat_members.py @@ -33,7 +33,11 @@ class ChatMembers(PyrogramType): Requested chat members. """ - def __init__(self, *, client, total_count: int, chat_members: list): + def __init__(self, + *, + client, + total_count: int, + chat_members: list): super().__init__(client) self.total_count = total_count diff --git a/pyrogram/client/types/user_and_chats/chat_photo.py b/pyrogram/client/types/user_and_chats/chat_photo.py index 91c77b06..b0e630a4 100644 --- a/pyrogram/client/types/user_and_chats/chat_photo.py +++ b/pyrogram/client/types/user_and_chats/chat_photo.py @@ -34,7 +34,11 @@ class ChatPhoto(PyrogramType): Unique file identifier of big (640x640) chat photo. This file_id can be used only for photo download. """ - def __init__(self, *, client, small_file_id: str, big_file_id: str): + def __init__(self, + *, + client, + small_file_id: str, + big_file_id: str): super().__init__(client) self.small_file_id = small_file_id diff --git a/pyrogram/client/types/user_and_chats/dialog.py b/pyrogram/client/types/user_and_chats/dialog.py index d617c11e..7b1d66b4 100644 --- a/pyrogram/client/types/user_and_chats/dialog.py +++ b/pyrogram/client/types/user_and_chats/dialog.py @@ -44,8 +44,15 @@ class Dialog(PyrogramType): True, if the dialog is pinned. """ - def __init__(self, *, client, chat, top_message, unread_messages_count: int, unread_mentions_count: int, - unread_mark: bool, is_pinned: bool): + def __init__(self, + *, + client, + chat, + top_message, + unread_messages_count: int, + unread_mentions_count: int, + unread_mark: bool, + is_pinned: bool): super().__init__(client) self.chat = chat diff --git a/pyrogram/client/types/user_and_chats/dialogs.py b/pyrogram/client/types/user_and_chats/dialogs.py index 21eda2f0..e1e8c5e2 100644 --- a/pyrogram/client/types/user_and_chats/dialogs.py +++ b/pyrogram/client/types/user_and_chats/dialogs.py @@ -33,7 +33,11 @@ class Dialogs(PyrogramType): Requested dialogs. """ - def __init__(self, *, client, total_count: int, dialogs: list): + def __init__(self, + *, + client, + total_count: int, + dialogs: list): super().__init__(client) self.total_count = total_count diff --git a/pyrogram/client/types/user_and_chats/user.py b/pyrogram/client/types/user_and_chats/user.py index 66d68121..4755e297 100644 --- a/pyrogram/client/types/user_and_chats/user.py +++ b/pyrogram/client/types/user_and_chats/user.py @@ -69,9 +69,22 @@ class User(PyrogramType): The reason why this bot might be unavailable to some users. """ - def __init__(self, *, client, id: int, is_self: bool, is_contact: bool, is_mutual_contact: bool, - is_deleted: bool, is_bot: bool, first_name: str, last_name: str = None, status=None, - username: str = None, language_code: str = None, phone_number: str = None, photo=None, + def __init__(self, + *, + client, + id: int, + is_self: bool, + is_contact: bool, + is_mutual_contact: bool, + is_deleted: bool, + is_bot: bool, + first_name: str, + last_name: str = None, + status=None, + username: str = None, + language_code: str = None, + phone_number: str = None, + photo=None, restriction_reason: str = None): super().__init__(client) diff --git a/pyrogram/client/types/user_and_chats/user_status.py b/pyrogram/client/types/user_and_chats/user_status.py index 8102ffe0..bcb4d195 100644 --- a/pyrogram/client/types/user_and_chats/user_status.py +++ b/pyrogram/client/types/user_and_chats/user_status.py @@ -62,8 +62,16 @@ class UserStatus(PyrogramType): always shown to blocked users), None otherwise. """ - def __init__(self, *, client, user_id: int, online: bool = None, offline: bool = None, date: int = None, - recently: bool = None, within_week: bool = None, within_month: bool = None, + def __init__(self, + *, + client, + user_id: int, + online: bool = None, + offline: bool = None, + date: int = None, + recently: bool = None, + within_week: bool = None, + within_month: bool = None, long_time_ago: bool = None): super().__init__(client)