From 84f1c4d39b6b0a50a88f6bd137037a86644d97f9 Mon Sep 17 00:00:00 2001 From: Abolfazl Khalili Date: Tue, 20 Aug 2024 00:02:41 +0330 Subject: [PATCH] add editHide to Message --- src/EventHandler/Message.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/EventHandler/Message.php b/src/EventHandler/Message.php index b58482f0d..52326001f 100644 --- a/src/EventHandler/Message.php +++ b/src/EventHandler/Message.php @@ -88,6 +88,12 @@ abstract class Message extends AbstractMessage /** Last edit date of the message */ public readonly ?int $editDate; + /** + * Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. + * Used to signify non-content related updates such as reactions. + */ + public readonly ?bool $editHide; + /** Inline or reply keyboard. */ public readonly InlineKeyboard|ReplyKeyboard|null $keyboard; @@ -147,6 +153,7 @@ abstract class Message extends AbstractMessage $this->signature = $rawMessage['post_author'] ?? null; $this->groupedId = $rawMessage['grouped_id'] ?? null; $this->editDate = $rawMessage['edit_date'] ?? null; + $this->editHide = $rawMessage['edit_hide'] ?? null; $this->message = $rawMessage['message']; $this->fromScheduled = $rawMessage['from_scheduled'] ?? false;