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