mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21:24:50 +00:00
Fix casting in case api_id is None
This commit is contained in:
parent
26a41ec00e
commit
0bd22e9266
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class Client:
|
|||
last_name: str = None,
|
||||
workers: int = 4):
|
||||
self.session_name = session_name
|
||||
self.api_id = int(api_id)
|
||||
self.api_id = int(api_id) if api_id else None
|
||||
self.api_hash = api_hash
|
||||
self.proxy = proxy
|
||||
self.test_mode = test_mode
|
||||
|
|
|
|||
Loading…
Reference in a new issue