From 603ba940d6b66643dbe6def2e95b0daba4e5ed84 Mon Sep 17 00:00:00 2001 From: faint069 <45226807+faint069@users.noreply.github.com> Date: Sat, 3 Sep 2022 11:40:55 +0300 Subject: [PATCH] Fixed missing link attachment type in Posts and Comments (#1250) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Филатов Антон Владимирович --- VkNet/Model/Attachments/Attachment.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/VkNet/Model/Attachments/Attachment.cs b/VkNet/Model/Attachments/Attachment.cs index fb01e248d..d97fb8260 100644 --- a/VkNet/Model/Attachments/Attachment.cs +++ b/VkNet/Model/Attachments/Attachment.cs @@ -34,6 +34,7 @@ public static Attachment FromJson(VkResponse response) return type switch { + "link" => CreateTyped(response[type]), "photo" or "posted_photo" => CreateTyped(response[type]), "audio" => CreateTyped