🆙 TL Schema: Update API schemes to layer 137
✨ Format compiler.py
This commit is contained in:
parent
86c81bfff9
commit
04b783281e
@ -199,12 +199,12 @@ def start(format: bool = False):
|
|||||||
shutil.rmtree(DESTINATION_PATH / "base", ignore_errors=True)
|
shutil.rmtree(DESTINATION_PATH / "base", ignore_errors=True)
|
||||||
|
|
||||||
with open(HOME_PATH / "source/auth_key.tl") as f1, \
|
with open(HOME_PATH / "source/auth_key.tl") as f1, \
|
||||||
open(HOME_PATH / "source/sys_msgs.tl") as f2, \
|
open(HOME_PATH / "source/sys_msgs.tl") as f2, \
|
||||||
open(HOME_PATH / "source/main_api.tl") as f3:
|
open(HOME_PATH / "source/main_api.tl") as f3:
|
||||||
schema = (f1.read() + f2.read() + f3.read()).splitlines()
|
schema = (f1.read() + f2.read() + f3.read()).splitlines()
|
||||||
|
|
||||||
with open(HOME_PATH / "template/type.txt") as f1, \
|
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()
|
type_tmpl = f1.read()
|
||||||
combinator_tmpl = f2.read()
|
combinator_tmpl = f2.read()
|
||||||
|
|
||||||
@ -345,11 +345,11 @@ def start(format: bool = False):
|
|||||||
sorted_args = sort_args(c.args)
|
sorted_args = sort_args(c.args)
|
||||||
|
|
||||||
arguments = (
|
arguments = (
|
||||||
(", *, " if c.args else "") +
|
(", *, " if c.args else "") +
|
||||||
(", ".join(
|
(", ".join(
|
||||||
[f"{i[0]}: {get_type_hint(i[1])}"
|
[f"{i[0]}: {get_type_hint(i[1])}"
|
||||||
for i in sorted_args]
|
for i in sorted_args]
|
||||||
) if sorted_args else "")
|
) if sorted_args else "")
|
||||||
)
|
)
|
||||||
|
|
||||||
fields = "\n ".join(
|
fields = "\n ".join(
|
||||||
|
@ -1291,7 +1291,7 @@ messageUserReaction#932844fa user_id:long reaction:string = MessageUserReaction;
|
|||||||
|
|
||||||
messages.messageReactionsList#a366923c flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
|
messages.messageReactionsList#a366923c flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> 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.availableReactionsNotModified#9f071957 = messages.AvailableReactions;
|
||||||
messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;
|
messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = 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.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;
|
stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
|
||||||
|
|
||||||
// LAYER 136
|
// LAYER 137
|
Loading…
Reference in New Issue
Block a user