fix(store): oboobs model deserialization, log media service errors

This commit is contained in:
West
2025-08-22 19:54:53 +03:00
parent f58aa494bc
commit ed9328a9a1
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -123,8 +123,9 @@ public class Store : CommonHandler
{
await PerformPurchase(mediaService, messageId);
}
catch
catch (Exception e)
{
Console.WriteLine(e);
answer = "Товар недоступен";
await Bot.EditMessageText(Chat.Id,
messageId,
+1 -1
View File
@@ -16,6 +16,6 @@ public record OBoobsItem
[JsonPropertyName("model")]
public string? Model { get; set; }
[JsonPropertyName("rank")]
[JsonPropertyName("preview")]
public string Preview { get; set; } = string.Empty;
}