mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21:24:50 +00:00
Allow passing api_id as string
This commit is contained in:
parent
73fbe60057
commit
dfc8d00adb
1 changed files with 2 additions and 2 deletions
|
|
@ -132,7 +132,7 @@ class Client:
|
|||
|
||||
def __init__(self,
|
||||
session_name: str,
|
||||
api_id: int = None,
|
||||
api_id: int or str = None,
|
||||
api_hash: str = None,
|
||||
proxy: dict or Proxy = None,
|
||||
test_mode: bool = False,
|
||||
|
|
@ -144,7 +144,7 @@ class Client:
|
|||
last_name: str = None,
|
||||
workers: int = 4):
|
||||
self.session_name = session_name
|
||||
self.api_id = api_id
|
||||
self.api_id = int(api_id)
|
||||
self.api_hash = api_hash
|
||||
self.proxy = proxy
|
||||
self.test_mode = test_mode
|
||||
|
|
|
|||
Loading…
Reference in a new issue