From 16ca4a09a2d34d3845f59bcdafbe950020baca58 Mon Sep 17 00:00:00 2001 From: West14 <30056636+West14@users.noreply.github.com> Date: Wed, 16 Feb 2022 17:11:29 +0200 Subject: [PATCH] Update Dockerfile to build ContentStore. Fix success purchase message markup. --- Dockerfile | 1 + modules/ContentStore/Handler/Store.cs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 167e1dc..64ae22a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ COPY ./modules/Entertainment/*.csproj ./modules/Entertainment/ COPY ./modules/UserGroupTag/*.csproj ./modules/UserGroupTag/ COPY ./modules/ChatQuotes/*.csproj ./modules/ChatQuotes/ COPY ./modules/Reputation/*.csproj ./modules/Reputation/ +COPY ./modules/ContentStore/*.csproj ./modules/ContentStore/ RUN dotnet restore Kruzya.TelegramBot.sln # Copy all project files diff --git a/modules/ContentStore/Handler/Store.cs b/modules/ContentStore/Handler/Store.cs index 51b33b1..fd13cde 100644 --- a/modules/ContentStore/Handler/Store.cs +++ b/modules/ContentStore/Handler/Store.cs @@ -117,7 +117,10 @@ public class Store : BotEventHandler } await _reputation.IncrementReputationAsync(Chat, From, -storeItem.Price); - await Bot.EditMessageTextAsync(Chat.Id, messageId, $"{From.ToHtml()} купил \"{storeItem.Name}\"."); + await Bot.EditMessageTextAsync(Chat.Id, + messageId, + $"{From.ToHtml()} купил \"{storeItem.Name}\".", + ParseMode.Html); var randomMedia = await mediaService!.GetRandomMediaAsync(); var file = new InputOnlineFile(randomMedia.Url);