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