mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix(store): message markup
This commit is contained in:
@@ -8,6 +8,7 @@ using Kruzya.TelegramBot.Core.Handler;
|
||||
using Kruzya.TelegramBot.Core.Service;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Telegram.Bot;
|
||||
using Telegram.Bot.Types;
|
||||
using Telegram.Bot.Types.Enums;
|
||||
using Telegram.Bot.Types.ReplyMarkups;
|
||||
using West.TelegramBot.ContentStore.Service;
|
||||
@@ -112,12 +113,12 @@ public class Store : CommonHandler
|
||||
{
|
||||
await PerformPurchase(mediaService, messageId);
|
||||
}
|
||||
catch (Exception)
|
||||
catch
|
||||
{
|
||||
answer = "Товар недоступен";
|
||||
await Bot.EditMessageText(Chat.Id,
|
||||
messageId,
|
||||
$"<b>{From.ToHtml()} попытался купить \"{storeItem.Name}\", но товара в наличии не оказалось.",
|
||||
$"<b>{From.ToHtml()}</b> попытался купить \"{storeItem.Name}\", но товара в наличии не оказалось.",
|
||||
ParseMode.Html);
|
||||
await AnswerQuery(query.Id, answer);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user