diff --git a/src/TgBotLib/Objects/VideoChatScheduled.php b/src/TgBotLib/Objects/VideoChatScheduled.php new file mode 100644 index 0000000..b1bc10a --- /dev/null +++ b/src/TgBotLib/Objects/VideoChatScheduled.php @@ -0,0 +1,50 @@ +start_date; + } + + /** + * Returns an array representation of the object + * + * @return array + */ + public function toArray(): array + { + return [ + 'start_date' => $this->start_date, + ]; + } + + /** + * Constructs object from an array representation + * + * @param array $data + * @return ObjectTypeInterface + */ + public static function fromArray(array $data): ObjectTypeInterface + { + $object = new self(); + $object->start_date = $data['start_date']; + return $object; + } + } \ No newline at end of file