We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 228b45b commit 6e3dbbdCopy full SHA for 6e3dbbd
1 file changed
pyrogram/client.py
@@ -192,7 +192,7 @@ class Client(Methods):
192
def __init__(
193
self,
194
name: str,
195
- api_id: int = None,
+ api_id: Union[int, str] = None,
196
api_hash: str = None,
197
app_version: str = APP_VERSION,
198
device_model: str = DEVICE_MODEL,
@@ -219,7 +219,7 @@ def __init__(
219
super().__init__()
220
221
self.name = name
222
- self.api_id = api_id
+ self.api_id = int(api_id) if api_id else None
223
self.api_hash = api_hash
224
self.app_version = app_version
225
self.device_model = device_model
0 commit comments