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