From 756bf0048924c24b9e3492afd3263d53d2ab5560 Mon Sep 17 00:00:00 2001 From: uidops Date: Mon, 12 Aug 2024 18:38:47 +0330 Subject: [PATCH 1/3] fix for storyreply --- compiler/api/docs.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/compiler/api/docs.json b/compiler/api/docs.json index 5a5cf3366..ddd6ddd1f 100644 --- a/compiler/api/docs.json +++ b/compiler/api/docs.json @@ -4730,7 +4730,18 @@ "desc": "Represents a reply to a story", "params": { "peer": "Sender of the story.", - "story_id": "Story ID" + "story_id": "Story ID", + "forum_topic": "Whether this message was sent in a forum topic (except for the General topic).", + "quote": "Whether this message is quoting a part of another message.", + "quote_entities": "Message entities for styled text from the quote_text field.", + "quote_offset": "Offset of the message quote_text within the original message (in UTF-16 code units).", + "quote_text": "Used to quote-reply to only a certain section (specified here) of the original message.", + "reply_from": "When replying to a message sent by a certain peer to another chat, contains info about the peer that originally sent the message to that other chat.", + "reply_media": "When replying to a media sent by a certain peer to another chat, contains the media of the replied-to message.", + "reply_to_msg_id": "ID of message to which this message is replying", + "reply_to_peer_id": "For replies sent in channel discussion threads of which the current user is not a member, the discussion group ID", + "reply_to_scheduled": "This is a reply to a scheduled message.", + "reply_to_top_id": "ID of the message that started this message thread" } }, "MessageService": { From e8bc8c9b85f1923ae996c48f40fc9ef1c5918e06 Mon Sep 17 00:00:00 2001 From: uidops Date: Mon, 12 Aug 2024 18:46:52 +0330 Subject: [PATCH 2/3] fix for storyreply --- compiler/api/source/main_api.tl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/api/source/main_api.tl b/compiler/api/source/main_api.tl index 48d2460f0..46157a9a2 100644 --- a/compiler/api/source/main_api.tl +++ b/compiler/api/source/main_api.tl @@ -1314,7 +1314,7 @@ messages.messageViews#b6c4f543 views:Vector chats:Vector use messages.discussionMessage#a6341782 flags:# messages:Vector max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int unread_count:int chats:Vector users:Vector = messages.DiscussionMessage; messageReplyHeader#afbc09db flags:# reply_to_scheduled:flags.2?true forum_topic:flags.3?true quote:flags.9?true reply_to_msg_id:flags.4?int reply_to_peer_id:flags.0?Peer reply_from:flags.5?MessageFwdHeader reply_media:flags.8?MessageMedia reply_to_top_id:flags.1?int quote_text:flags.6?string quote_entities:flags.7?Vector quote_offset:flags.10?int = MessageReplyHeader; -messageReplyStoryHeader#e5af939 peer:Peer story_id:int = MessageReplyHeader; +messageReplyStoryHeader#e5af939 peer:Peer story_id:int = MessageReplyHeader flags:# reply_to_scheduled:flags.2?true forum_topic:flags.3?true quote:flags.9?true reply_to_msg_id:flags.4?int reply_to_peer_id:flags.0?Peer reply_from:flags.5?MessageFwdHeader reply_media:flags.8?MessageMedia reply_to_top_id:flags.1?int quote_text:flags.6?string quote_entities:flags.7?Vector quote_offset:flags.10?int = MessageReplyHeader; messageReplies#83d60fc2 flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector channel_id:flags.0?long max_id:flags.2?int read_max_id:flags.3?int = MessageReplies; From a2465e2f7634e04d1798e93ca684a9d902933450 Mon Sep 17 00:00:00 2001 From: uidops Date: Mon, 12 Aug 2024 18:50:46 +0330 Subject: [PATCH 3/3] fix for storyreply --- compiler/api/source/main_api.tl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/api/source/main_api.tl b/compiler/api/source/main_api.tl index 46157a9a2..a01355f2d 100644 --- a/compiler/api/source/main_api.tl +++ b/compiler/api/source/main_api.tl @@ -1314,7 +1314,7 @@ messages.messageViews#b6c4f543 views:Vector chats:Vector use messages.discussionMessage#a6341782 flags:# messages:Vector max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int unread_count:int chats:Vector users:Vector = messages.DiscussionMessage; messageReplyHeader#afbc09db flags:# reply_to_scheduled:flags.2?true forum_topic:flags.3?true quote:flags.9?true reply_to_msg_id:flags.4?int reply_to_peer_id:flags.0?Peer reply_from:flags.5?MessageFwdHeader reply_media:flags.8?MessageMedia reply_to_top_id:flags.1?int quote_text:flags.6?string quote_entities:flags.7?Vector quote_offset:flags.10?int = MessageReplyHeader; -messageReplyStoryHeader#e5af939 peer:Peer story_id:int = MessageReplyHeader flags:# reply_to_scheduled:flags.2?true forum_topic:flags.3?true quote:flags.9?true reply_to_msg_id:flags.4?int reply_to_peer_id:flags.0?Peer reply_from:flags.5?MessageFwdHeader reply_media:flags.8?MessageMedia reply_to_top_id:flags.1?int quote_text:flags.6?string quote_entities:flags.7?Vector quote_offset:flags.10?int = MessageReplyHeader; +messageReplyStoryHeader#e5af939 peer:Peer story_id:int = MessageReplyHeader reply_to_scheduled:Bool forum_topic:Bool quote:Bool reply_to_msg_id:int reply_to_peer_id:Peer reply_from:MessageFwdHeader reply_media:MessageMedia reply_to_top_id:int quote_text:string quote_entities:Vector quote_offset:int = MessageStoryReplyHeader; messageReplies#83d60fc2 flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector channel_id:flags.0?long max_id:flags.2?int read_max_id:flags.3?int = MessageReplies;