ec736f8590
i've been wanting to name a commit like this for my entire life, lol. seriously though, a lot has changed: - extracted TL-related stuff to `@mtcute/tl-utils` and `@mtcute/tl-runtime`, rewrote codegen in TS - updated to layer 134, moved to int64 identifiers - rewritten networking (mtproto), rewritten updates handling - *lots* of refactoring still a very early version though, there are a lot of improvements to be made, but at least it runs, lol also tl-reference will not be updated anytime soon because i want to rewrite it
29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
// this file is sourced *before* actual schema.
|
|
// should be used for types that are not currently added to the schema,
|
|
// but seem to work
|
|
// in case of conflict, type from main schema is preferred
|
|
|
|
// for internal use
|
|
---types---
|
|
|
|
dummyUpdate pts:int pts_count:int channel_id:int53 = Update;
|
|
|
|
// reactions
|
|
// taken from official docs coz why not lol
|
|
// ctor ids will be generated by the codegen
|
|
// *does* work with layer 131 (as of 25.07.21)
|
|
|
|
---types---
|
|
|
|
updateMessageReactions peer:Peer msg_id:int reactions:MessageReactions = Update;
|
|
messageReactions flags:# min:flags.0?true results:Vector<ReactionCount> = MessageReactions;
|
|
reactionCount flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;
|
|
|
|
messageReactionsList flags:# count:int reactions:Vector<MessageUserReaction> users:Vector<User> next_offset:flags.0?string = MessageReactionsList;
|
|
messageUserReaction user_id:int reaction:string = MessageUserReaction;
|
|
|
|
---functions---
|
|
|
|
messages.sendReaction flags:# peer:InputPeer msg_id:int reaction:flags.0?string = Updates;
|
|
messages.getMessagesReactions peer:InputPeer id:Vector<int> = Updates;
|
|
messages.getMessageReactionsList flags:# peer:InputPeer id:int reaction:flags.0?string offset:flags.1?string limit:int = MessageReactionsList;
|