2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-01 23:05:15 +00:00

Update API schema to Layer 95

This commit is contained in:
Dan
2019-02-03 11:03:11 +01:00
parent 68509638c1
commit 249e405339
2 changed files with 18 additions and 12 deletions

View File

@@ -530,9 +530,10 @@ class Client(Methods, BaseClient):
try:
r = self.send(
functions.auth.SendCode(
self.phone_number,
self.api_id,
self.api_hash
phone_number=self.phone_number,
api_id=self.api_id,
api_hash=self.api_hash,
settings=types.CodeSettings()
)
)
except (PhoneMigrate, NetworkMigrate) as e: