1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 04:08:59 +01:00

Merge pull request #1543 from ixabolfazl/v8

add editHide to Message
This commit is contained in:
Daniil Gentili 2024-08-23 13:27:53 +02:00 committed by GitHub
commit 001bce6c52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;