mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix(store): oboobs model deserialization, log media service errors
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user