From da515af9597f9533d9315ace6096c7cb22fe122c Mon Sep 17 00:00:00 2001
From: Dan <14043624+delivrance@users.noreply.github.com>
Date: Thu, 6 Jun 2019 19:29:44 +0200
Subject: [PATCH] Rearrange code
---
compiler/api/compiler.py | 6 ++---
pyrogram/api/core/__init__.py | 2 +-
pyrogram/api/core/future_salt.py | 2 +-
pyrogram/api/core/future_salts.py | 2 +-
pyrogram/api/core/gzip_packed.py | 2 +-
pyrogram/api/core/message.py | 2 +-
pyrogram/api/core/msg_container.py | 2 +-
.../methods/bots/get_inline_bot_results.py | 2 +-
pyrogram/client/methods/chats/__init__.py | 2 +-
pyrogram/client/methods/users/get_user_dc.py | 1 -
.../todo/inline_query_result_audio.py | 3 ++-
.../todo/inline_query_result_cached_audio.py | 2 +-
.../inline_query_result_cached_document.py | 3 ++-
.../todo/inline_query_result_cached_gif.py | 3 ++-
.../inline_query_result_cached_mpeg4_gif.py | 3 ++-
.../todo/inline_query_result_cached_photo.py | 3 ++-
.../todo/inline_query_result_cached_video.py | 3 ++-
.../todo/inline_query_result_cached_voice.py | 3 ++-
.../todo/inline_query_result_contact.py | 4 +++-
.../todo/inline_query_result_document.py | 4 +++-
.../todo/inline_query_result_gif.py | 4 +++-
.../todo/inline_query_result_location.py | 4 +++-
.../todo/inline_query_result_mpeg4_gif.py | 4 +++-
.../todo/inline_query_result_photo.py | 24 +++++++++----------
.../todo/inline_query_result_venue.py | 4 +++-
.../todo/inline_query_result_video.py | 4 +++-
.../todo/inline_query_result_voice.py | 3 ++-
.../types/input_media/input_phone_contact.py | 1 +
.../client/types/keyboards/force_reply.py | 1 +
.../client/types/keyboards/keyboard_button.py | 1 +
.../types/keyboards/reply_keyboard_remove.py | 1 +
31 files changed, 65 insertions(+), 40 deletions(-)
diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py
index 0ecc9212..3995fd5f 100644
--- a/compiler/api/compiler.py
+++ b/compiler/api/compiler.py
@@ -288,9 +288,9 @@ def start():
sorted_args = sort_args(c.args)
arguments = (
- ", "
- + ("*, " if c.args else "")
- + (", ".join([get_argument_type(i) for i in sorted_args if i != ("flags", "#")]) if c.args else "")
+ ", "
+ + ("*, " if c.args else "")
+ + (", ".join([get_argument_type(i) for i in sorted_args if i != ("flags", "#")]) if c.args else "")
)
fields = "\n ".join(
diff --git a/pyrogram/api/core/__init__.py b/pyrogram/api/core/__init__.py
index f27a26a5..aaf5a324 100644
--- a/pyrogram/api/core/__init__.py
+++ b/pyrogram/api/core/__init__.py
@@ -22,8 +22,8 @@ from .gzip_packed import GzipPacked
from .list import List
from .message import Message
from .msg_container import MsgContainer
-from .tl_object import TLObject
from .primitives import (
Bool, BoolTrue, BoolFalse, Bytes, Double,
Int, Long, Int128, Int256, Null, String, Vector
)
+from .tl_object import TLObject
diff --git a/pyrogram/api/core/future_salt.py b/pyrogram/api/core/future_salt.py
index 699a416f..ab387f6c 100644
--- a/pyrogram/api/core/future_salt.py
+++ b/pyrogram/api/core/future_salt.py
@@ -18,8 +18,8 @@
from io import BytesIO
-from .tl_object import TLObject
from .primitives import Int, Long
+from .tl_object import TLObject
class FutureSalt(TLObject):
diff --git a/pyrogram/api/core/future_salts.py b/pyrogram/api/core/future_salts.py
index c749c569..a97b9d2a 100644
--- a/pyrogram/api/core/future_salts.py
+++ b/pyrogram/api/core/future_salts.py
@@ -19,8 +19,8 @@
from io import BytesIO
from . import FutureSalt
-from .tl_object import TLObject
from .primitives import Int, Long
+from .tl_object import TLObject
class FutureSalts(TLObject):
diff --git a/pyrogram/api/core/gzip_packed.py b/pyrogram/api/core/gzip_packed.py
index 4b212184..5a8e76da 100644
--- a/pyrogram/api/core/gzip_packed.py
+++ b/pyrogram/api/core/gzip_packed.py
@@ -19,8 +19,8 @@
from gzip import compress, decompress
from io import BytesIO
-from .tl_object import TLObject
from .primitives import Int, Bytes
+from .tl_object import TLObject
class GzipPacked(TLObject):
diff --git a/pyrogram/api/core/message.py b/pyrogram/api/core/message.py
index db123db3..1b9b55f1 100644
--- a/pyrogram/api/core/message.py
+++ b/pyrogram/api/core/message.py
@@ -18,8 +18,8 @@
from io import BytesIO
-from .tl_object import TLObject
from .primitives import Int, Long
+from .tl_object import TLObject
class Message(TLObject):
diff --git a/pyrogram/api/core/msg_container.py b/pyrogram/api/core/msg_container.py
index 7a17087e..58732403 100644
--- a/pyrogram/api/core/msg_container.py
+++ b/pyrogram/api/core/msg_container.py
@@ -19,8 +19,8 @@
from io import BytesIO
from .message import Message
-from .tl_object import TLObject
from .primitives import Int
+from .tl_object import TLObject
class MsgContainer(TLObject):
diff --git a/pyrogram/client/methods/bots/get_inline_bot_results.py b/pyrogram/client/methods/bots/get_inline_bot_results.py
index 307238e3..cc0fc1b1 100644
--- a/pyrogram/client/methods/bots/get_inline_bot_results.py
+++ b/pyrogram/client/methods/bots/get_inline_bot_results.py
@@ -19,8 +19,8 @@
from typing import Union
from pyrogram.api import functions, types
-from pyrogram.errors import UnknownError
from pyrogram.client.ext import BaseClient
+from pyrogram.errors import UnknownError
class GetInlineBotResults(BaseClient):
diff --git a/pyrogram/client/methods/chats/__init__.py b/pyrogram/client/methods/chats/__init__.py
index 698255f5..c0176939 100644
--- a/pyrogram/client/methods/chats/__init__.py
+++ b/pyrogram/client/methods/chats/__init__.py
@@ -23,6 +23,7 @@ from .get_chat_member import GetChatMember
from .get_chat_members import GetChatMembers
from .get_chat_members_count import GetChatMembersCount
from .get_dialogs import GetDialogs
+from .get_dialogs_count import GetDialogsCount
from .iter_chat_members import IterChatMembers
from .iter_dialogs import IterDialogs
from .join_chat import JoinChat
@@ -38,7 +39,6 @@ from .set_chat_title import SetChatTitle
from .unban_chat_member import UnbanChatMember
from .unpin_chat_message import UnpinChatMessage
from .update_chat_username import UpdateChatUsername
-from .get_dialogs_count import GetDialogsCount
class Chats(
diff --git a/pyrogram/client/methods/users/get_user_dc.py b/pyrogram/client/methods/users/get_user_dc.py
index 49596c11..89e97526 100644
--- a/pyrogram/client/methods/users/get_user_dc.py
+++ b/pyrogram/client/methods/users/get_user_dc.py
@@ -19,7 +19,6 @@
from typing import Union
from pyrogram.api import functions, types
-
from ...ext import BaseClient
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_audio.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_audio.py
index dbda676d..d5fb954a 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_audio.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_audio.py
@@ -58,7 +58,8 @@ class InlineQueryResultAudio(Object):
"""
- def __init__(self, type: str, id: str, audio_url: str, title: str, caption: str = None, parse_mode: str = None, performer: str = None, audio_duration: int = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, audio_url: str, title: str, caption: str = None, parse_mode: str = None,
+ performer: str = None, audio_duration: int = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.audio_url = audio_url # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_audio.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_audio.py
index a4ac1ec8..47b9bbe2 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_audio.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_audio.py
@@ -20,10 +20,10 @@ import binascii
import struct
from pyrogram.api import types
-from pyrogram.errors import FileIdInvalid
from pyrogram.client.ext import utils, BaseClient
from pyrogram.client.style import HTML, Markdown
from pyrogram.client.types.object import Object
+from pyrogram.errors import FileIdInvalid
class InlineQueryResultCachedAudio(Object):
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_document.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_document.py
index 0dfde1c4..d3b3d0dc 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_document.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_document.py
@@ -56,7 +56,8 @@ class InlineQueryResultCachedDocument(Object):
"""
ID = 0xb0700015
- def __init__(self, type: str, id: str, title: str, document_file_id: str, description: str = None, caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, title: str, document_file_id: str, description: str = None,
+ caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.title = title # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_gif.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_gif.py
index 819b383f..28a3595b 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_gif.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_gif.py
@@ -53,7 +53,8 @@ class InlineQueryResultCachedGif(Object):
"""
ID = 0xb0700012
- def __init__(self, type: str, id: str, gif_file_id: str, title: str = None, caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, gif_file_id: str, title: str = None, caption: str = None,
+ parse_mode: str = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.gif_file_id = gif_file_id # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_mpeg4_gif.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_mpeg4_gif.py
index 9856af66..95ab03a0 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_mpeg4_gif.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_mpeg4_gif.py
@@ -53,7 +53,8 @@ class InlineQueryResultCachedMpeg4Gif(Object):
"""
ID = 0xb0700013
- def __init__(self, type: str, id: str, mpeg4_file_id: str, title: str = None, caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, mpeg4_file_id: str, title: str = None, caption: str = None,
+ parse_mode: str = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.mpeg4_file_id = mpeg4_file_id # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_photo.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_photo.py
index 53b479f9..22793cef 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_photo.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_photo.py
@@ -56,7 +56,8 @@ class InlineQueryResultCachedPhoto(Object):
"""
ID = 0xb0700011
- def __init__(self, type: str, id: str, photo_file_id: str, title: str = None, description: str = None, caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, photo_file_id: str, title: str = None, description: str = None,
+ caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.photo_file_id = photo_file_id # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_video.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_video.py
index 3a04a766..77dcd6dd 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_video.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_video.py
@@ -56,7 +56,8 @@ class InlineQueryResultCachedVideo(Object):
"""
ID = 0xb0700016
- def __init__(self, type: str, id: str, video_file_id: str, title: str, description: str = None, caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, video_file_id: str, title: str, description: str = None, caption: str = None,
+ parse_mode: str = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.video_file_id = video_file_id # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_voice.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_voice.py
index fbdf6c19..a80d5a20 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_voice.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_cached_voice.py
@@ -53,7 +53,8 @@ class InlineQueryResultCachedVoice(Object):
"""
ID = 0xb0700017
- def __init__(self, type: str, id: str, voice_file_id: str, title: str, caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, voice_file_id: str, title: str, caption: str = None, parse_mode: str = None,
+ reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.voice_file_id = voice_file_id # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_contact.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_contact.py
index a64d6ace..afddb9ec 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_contact.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_contact.py
@@ -62,7 +62,9 @@ class InlineQueryResultContact(Object):
"""
ID = 0xb0700009
- def __init__(self, type: str, id: str, phone_number: str, first_name: str, last_name: str = None, vcard: str = None, reply_markup=None, input_message_content=None, thumb_url: str = None, thumb_width: int = None, thumb_height: int = None):
+ def __init__(self, type: str, id: str, phone_number: str, first_name: str, last_name: str = None, vcard: str = None,
+ reply_markup=None, input_message_content=None, thumb_url: str = None, thumb_width: int = None,
+ thumb_height: int = None):
self.type = type # string
self.id = id # string
self.phone_number = phone_number # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_document.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_document.py
index 007f237b..370dc3c6 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_document.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_document.py
@@ -68,7 +68,9 @@ class InlineQueryResultDocument(Object):
"""
ID = 0xb0700006
- def __init__(self, type: str, id: str, title: str, document_url: str, mime_type: str, caption: str = None, parse_mode: str = None, description: str = None, reply_markup=None, input_message_content=None, thumb_url: str = None, thumb_width: int = None, thumb_height: int = None):
+ def __init__(self, type: str, id: str, title: str, document_url: str, mime_type: str, caption: str = None,
+ parse_mode: str = None, description: str = None, reply_markup=None, input_message_content=None,
+ thumb_url: str = None, thumb_width: int = None, thumb_height: int = None):
self.type = type # string
self.id = id # string
self.title = title # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_gif.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_gif.py
index 7273b79a..56817d76 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_gif.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_gif.py
@@ -65,7 +65,9 @@ class InlineQueryResultGif(Object):
"""
ID = 0xb0700001
- def __init__(self, type: str, id: str, gif_url: str, thumb_url: str, gif_width: int = None, gif_height: int = None, gif_duration: int = None, title: str = None, caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, gif_url: str, thumb_url: str, gif_width: int = None, gif_height: int = None,
+ gif_duration: int = None, title: str = None, caption: str = None, parse_mode: str = None,
+ reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.gif_url = gif_url # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_location.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_location.py
index a32fc93d..74c63ede 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_location.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_location.py
@@ -62,7 +62,9 @@ class InlineQueryResultLocation(Object):
"""
ID = 0xb0700007
- def __init__(self, type: str, id: str, latitude: float, longitude: float, title: str, live_period: int = None, reply_markup=None, input_message_content=None, thumb_url: str = None, thumb_width: int = None, thumb_height: int = None):
+ def __init__(self, type: str, id: str, latitude: float, longitude: float, title: str, live_period: int = None,
+ reply_markup=None, input_message_content=None, thumb_url: str = None, thumb_width: int = None,
+ thumb_height: int = None):
self.type = type # string
self.id = id # string
self.latitude = latitude # double
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_mpeg4_gif.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_mpeg4_gif.py
index 04c68cf7..e4da6b89 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_mpeg4_gif.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_mpeg4_gif.py
@@ -65,7 +65,9 @@ class InlineQueryResultMpeg4Gif(Object):
"""
ID = 0xb0700002
- def __init__(self, type: str, id: str, mpeg4_url: str, thumb_url: str, mpeg4_width: int = None, mpeg4_height: int = None, mpeg4_duration: int = None, title: str = None, caption: str = None, parse_mode: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, mpeg4_url: str, thumb_url: str, mpeg4_width: int = None,
+ mpeg4_height: int = None, mpeg4_duration: int = None, title: str = None, caption: str = None,
+ parse_mode: str = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.mpeg4_url = mpeg4_url # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_photo.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_photo.py
index 57f36fae..570bd55d 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_photo.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_photo.py
@@ -63,18 +63,18 @@ class InlineQueryResultPhoto(Object):
"""
def __init__(
- self,
- id: str,
- photo_url: str,
- thumb_url: str,
- photo_width: int = 0,
- photo_height: int = 0,
- title: str = None,
- description: str = None,
- caption: str = "",
- parse_mode: str = "",
- reply_markup=None,
- input_message_content=None
+ self,
+ id: str,
+ photo_url: str,
+ thumb_url: str,
+ photo_width: int = 0,
+ photo_height: int = 0,
+ title: str = None,
+ description: str = None,
+ caption: str = "",
+ parse_mode: str = "",
+ reply_markup=None,
+ input_message_content=None
):
self.id = id # string
self.photo_url = photo_url # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_venue.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_venue.py
index 3343ccf9..29eb86a6 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_venue.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_venue.py
@@ -68,7 +68,9 @@ class InlineQueryResultVenue(Object):
"""
ID = 0xb0700008
- def __init__(self, type: str, id: str, latitude: float, longitude: float, title: str, address: str, foursquare_id: str = None, foursquare_type: str = None, reply_markup=None, input_message_content=None, thumb_url: str = None, thumb_width: int = None, thumb_height: int = None):
+ def __init__(self, type: str, id: str, latitude: float, longitude: float, title: str, address: str,
+ foursquare_id: str = None, foursquare_type: str = None, reply_markup=None, input_message_content=None,
+ thumb_url: str = None, thumb_width: int = None, thumb_height: int = None):
self.type = type # string
self.id = id # string
self.latitude = latitude # double
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_video.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_video.py
index ebfe2047..61984d48 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_video.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_video.py
@@ -71,7 +71,9 @@ class InlineQueryResultVideo(Object):
"""
ID = 0xb0700003
- def __init__(self, type: str, id: str, video_url: str, mime_type: str, thumb_url: str, title: str, caption: str = None, parse_mode: str = None, video_width: int = None, video_height: int = None, video_duration: int = None, description: str = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, video_url: str, mime_type: str, thumb_url: str, title: str,
+ caption: str = None, parse_mode: str = None, video_width: int = None, video_height: int = None,
+ video_duration: int = None, description: str = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.video_url = video_url # string
diff --git a/pyrogram/client/types/inline_mode/todo/inline_query_result_voice.py b/pyrogram/client/types/inline_mode/todo/inline_query_result_voice.py
index 4e2bbb09..7a5f3cd1 100644
--- a/pyrogram/client/types/inline_mode/todo/inline_query_result_voice.py
+++ b/pyrogram/client/types/inline_mode/todo/inline_query_result_voice.py
@@ -56,7 +56,8 @@ class InlineQueryResultVoice(Object):
"""
ID = 0xb0700005
- def __init__(self, type: str, id: str, voice_url: str, title: str, caption: str = None, parse_mode: str = None, voice_duration: int = None, reply_markup=None, input_message_content=None):
+ def __init__(self, type: str, id: str, voice_url: str, title: str, caption: str = None, parse_mode: str = None,
+ voice_duration: int = None, reply_markup=None, input_message_content=None):
self.type = type # string
self.id = id # string
self.voice_url = voice_url # string
diff --git a/pyrogram/client/types/input_media/input_phone_contact.py b/pyrogram/client/types/input_media/input_phone_contact.py
index e49cee30..f60dd39d 100644
--- a/pyrogram/client/types/input_media/input_phone_contact.py
+++ b/pyrogram/client/types/input_media/input_phone_contact.py
@@ -17,6 +17,7 @@
# along with Pyrogram. If not, see .
from pyrogram.api.types import InputPhoneContact as RawInputPhoneContact
+
from pyrogram.session.internals import MsgId
from ..object import Object
diff --git a/pyrogram/client/types/keyboards/force_reply.py b/pyrogram/client/types/keyboards/force_reply.py
index 59405529..6c542aa8 100644
--- a/pyrogram/client/types/keyboards/force_reply.py
+++ b/pyrogram/client/types/keyboards/force_reply.py
@@ -17,6 +17,7 @@
# along with Pyrogram. If not, see .
from pyrogram.api.types import ReplyKeyboardForceReply
+
from ..object import Object
diff --git a/pyrogram/client/types/keyboards/keyboard_button.py b/pyrogram/client/types/keyboards/keyboard_button.py
index 2dc09f5d..8374db1b 100644
--- a/pyrogram/client/types/keyboards/keyboard_button.py
+++ b/pyrogram/client/types/keyboards/keyboard_button.py
@@ -18,6 +18,7 @@
from pyrogram.api.types import KeyboardButton as RawKeyboardButton
from pyrogram.api.types import KeyboardButtonRequestPhone, KeyboardButtonRequestGeoLocation
+
from ..object import Object
diff --git a/pyrogram/client/types/keyboards/reply_keyboard_remove.py b/pyrogram/client/types/keyboards/reply_keyboard_remove.py
index 8dd84f72..d451a8e8 100644
--- a/pyrogram/client/types/keyboards/reply_keyboard_remove.py
+++ b/pyrogram/client/types/keyboards/reply_keyboard_remove.py
@@ -17,6 +17,7 @@
# along with Pyrogram. If not, see .
from pyrogram.api.types import ReplyKeyboardHide
+
from ..object import Object