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);
|
await PerformPurchase(mediaService, messageId);
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine(e);
|
||||||
answer = "Товар недоступен";
|
answer = "Товар недоступен";
|
||||||
await Bot.EditMessageText(Chat.Id,
|
await Bot.EditMessageText(Chat.Id,
|
||||||
messageId,
|
messageId,
|
||||||
|
|||||||
@@ -16,6 +16,6 @@ public record OBoobsItem
|
|||||||
[JsonPropertyName("model")]
|
[JsonPropertyName("model")]
|
||||||
public string? Model { get; set; }
|
public string? Model { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("rank")]
|
[JsonPropertyName("preview")]
|
||||||
public string Preview { get; set; } = string.Empty;
|
public string Preview { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user