From e0d9932fa47bcf10144d1c42ffbcb2f3d7e4d992 Mon Sep 17 00:00:00 2001 From: Netkas Date: Sun, 12 Feb 2023 18:38:13 -0500 Subject: [PATCH] Added \TgBotLib\Objects > MessageAutoDeleteTimerChanged --- .../Objects/MessageAutoDeleteTimerChanged.php | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/TgBotLib/Objects/MessageAutoDeleteTimerChanged.php diff --git a/src/TgBotLib/Objects/MessageAutoDeleteTimerChanged.php b/src/TgBotLib/Objects/MessageAutoDeleteTimerChanged.php new file mode 100644 index 0000000..f0412a9 --- /dev/null +++ b/src/TgBotLib/Objects/MessageAutoDeleteTimerChanged.php @@ -0,0 +1,49 @@ +message_auto_delete_time; + } + + /** + * Returns an array representation of the object. + * + * @return array + */ + public function toArray(): array + { + return [ + 'message_auto_delete_time' => $this->message_auto_delete_time, + ]; + } + + /** + * Constructs the object from an array representation. + * + * @param array $data + * @return ObjectTypeInterface + */ + public static function fromArray(array $data): ObjectTypeInterface + { + $object = new self(); + $object->message_auto_delete_time = $data['message_auto_delete_time']; + + return $object; + } + } \ No newline at end of file