From 7967f9a16ccefdd6b47527ff5af3e8f5a40040d1 Mon Sep 17 00:00:00 2001 From: Wizou Date: Mon, 3 Jan 2022 19:18:40 +0100 Subject: [PATCH] layer doc about reactions --- src/TL.Schema.cs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 7fdcb41..b63078c 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -4065,12 +4065,15 @@ namespace TL public ExportedChatInvite invite; public int qts; } - /// See + /// New message reactions are available See [TLDef(0x154798C3)] public class UpdateMessageReactions : Update { + /// Peer public Peer peer; + /// Message ID public int msg_id; + /// Reactions public MessageReactions reactions; } @@ -12438,30 +12441,37 @@ namespace TL } } - /// See + /// Reactions See [TLDef(0x6FB250D1)] public class ReactionCount : IObject { + /// Flags, see TL conditional fields public Flags flags; + /// Reaction (a UTF8 emoji) public string reaction; + /// NUmber of users that reacted with this emoji public int count; [Flags] public enum Flags { + /// Whether the current user sent this reaction chosen = 0x1, } } - /// See + /// Message reactions See [TLDef(0x087B6E36)] public class MessageReactions : IObject { + /// Flags, see TL conditional fields public Flags flags; + /// Reactions public ReactionCount[] results; [IfFlag(1)] public MessageUserReaction[] recent_reactons; [Flags] public enum Flags { + /// Similar to min objects, used for message reaction constructors that are the same for all users so they don't have the reactions sent by the current user (you can use messages.getMessagesReactions to get the full reaction info). min = 0x1, /// Field has a value has_recent_reactons = 0x2, @@ -12469,11 +12479,13 @@ namespace TL } } - /// See + /// Message reaction See [TLDef(0x932844FA)] public class MessageUserReaction : IObject { + /// ID of user that reacted this way public long user_id; + /// Reaction (UTF8 emoji) public string reaction; }