From 04b783281e050aa322e7d0bff45ea8a9609d0cd6 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 19 Jan 2022 21:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=99=20TL=20Schema:=20Update=20API=20sc?= =?UTF-8?q?hemes=20to=20layer=20137=20=E2=9C=A8=20Format=20compiler.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compiler/api/compiler.py | 16 ++++++++-------- compiler/api/source/main_api.tl | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index 150fa49d..55375c57 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -199,12 +199,12 @@ def start(format: bool = False): shutil.rmtree(DESTINATION_PATH / "base", ignore_errors=True) with open(HOME_PATH / "source/auth_key.tl") as f1, \ - open(HOME_PATH / "source/sys_msgs.tl") as f2, \ - open(HOME_PATH / "source/main_api.tl") as f3: + open(HOME_PATH / "source/sys_msgs.tl") as f2, \ + open(HOME_PATH / "source/main_api.tl") as f3: schema = (f1.read() + f2.read() + f3.read()).splitlines() with open(HOME_PATH / "template/type.txt") as f1, \ - open(HOME_PATH / "template/combinator.txt") as f2: + open(HOME_PATH / "template/combinator.txt") as f2: type_tmpl = f1.read() combinator_tmpl = f2.read() @@ -345,11 +345,11 @@ def start(format: bool = False): sorted_args = sort_args(c.args) arguments = ( - (", *, " if c.args else "") + - (", ".join( - [f"{i[0]}: {get_type_hint(i[1])}" - for i in sorted_args] - ) if sorted_args else "") + (", *, " if c.args else "") + + (", ".join( + [f"{i[0]}: {get_type_hint(i[1])}" + for i in sorted_args] + ) if sorted_args else "") ) fields = "\n ".join( diff --git a/compiler/api/source/main_api.tl b/compiler/api/source/main_api.tl index 3cfee8a5..824fab45 100644 --- a/compiler/api/source/main_api.tl +++ b/compiler/api/source/main_api.tl @@ -1291,7 +1291,7 @@ messageUserReaction#932844fa user_id:long reaction:string = MessageUserReaction; messages.messageReactionsList#a366923c flags:# count:int reactions:Vector users:Vector next_offset:flags.0?string = messages.MessageReactionsList; -availableReaction#21d7c4b flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document = AvailableReaction; +availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction; messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions; messages.availableReactions#768e3aad hash:int reactions:Vector = messages.AvailableReactions; @@ -1728,4 +1728,4 @@ stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats; -// LAYER 136 \ No newline at end of file +// LAYER 137 \ No newline at end of file