@@ -627,9 +627,9 @@ def default_phone_number_callback():
627627 try :
628628 r = self .send (
629629 functions .auth .SignIn (
630- self .phone_number ,
631- phone_code_hash ,
632- self .phone_code
630+ phone_number = self .phone_number ,
631+ phone_code_hash = phone_code_hash ,
632+ phone_code = self .phone_code
633633 )
634634 )
635635 except PhoneNumberUnoccupied :
@@ -640,11 +640,11 @@ def default_phone_number_callback():
640640 try :
641641 r = self .send (
642642 functions .auth .SignUp (
643- self .phone_number ,
644- phone_code_hash ,
645- self .phone_code ,
646- self .first_name ,
647- self .last_name
643+ phone_number = self .phone_number ,
644+ phone_code_hash = phone_code_hash ,
645+ phone_code = self .phone_code ,
646+ first_name = self .first_name ,
647+ last_name = self .last_name
648648 )
649649 )
650650 except PhoneNumberOccupied :
@@ -738,7 +738,11 @@ def default_recovery_callback(email_pattern: str) -> str:
738738 break
739739
740740 if terms_of_service :
741- assert self .send (functions .help .AcceptTermsOfService (terms_of_service .id ))
741+ assert self .send (
742+ functions .help .AcceptTermsOfService (
743+ id = terms_of_service .id
744+ )
745+ )
742746
743747 self .password = None
744748 self .user_id = r .user .id
@@ -1036,10 +1040,10 @@ def send(self,
10361040 raise ConnectionError ("Client has not been started" )
10371041
10381042 if self .no_updates :
1039- data = functions .InvokeWithoutUpdates (data )
1043+ data = functions .InvokeWithoutUpdates (query = data )
10401044
10411045 if self .takeout_id :
1042- data = functions .InvokeWithTakeout (self .takeout_id , data )
1046+ data = functions .InvokeWithTakeout (takeout_id = self .takeout_id , query = data )
10431047
10441048 r = self .session .send (data , retries , timeout )
10451049
@@ -1353,15 +1357,15 @@ def resolve_peer(self,
13531357 self .fetch_peers (
13541358 self .send (
13551359 functions .users .GetUsers (
1356- id = [types .InputUser (peer_id , 0 )]
1360+ id = [types .InputUser (user_id = peer_id , access_hash = 0 )]
13571361 )
13581362 )
13591363 )
13601364 else :
13611365 if str (peer_id ).startswith ("-100" ):
13621366 self .send (
13631367 functions .channels .GetChannels (
1364- id = [types .InputChannel (int (str (peer_id )[4 :]), 0 )]
1368+ id = [types .InputChannel (channel_id = int (str (peer_id )[4 :]), access_hash = 0 )]
13651369 )
13661370 )
13671371 else :
@@ -1668,8 +1672,8 @@ def get_file(self,
16681672
16691673 hashes = session .send (
16701674 functions .upload .GetCdnFileHashes (
1671- r .file_token ,
1672- offset
1675+ file_token = r .file_token ,
1676+ offset = offset
16731677 )
16741678 )
16751679
0 commit comments