1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 19:24:42 +01:00

add editHide to Message

This commit is contained in:
Abolfazl Khalili 2024-08-20 00:02:41 +03:30
parent 7629e33f85
commit 84f1c4d39b

View File

@ -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;