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