mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Update Dockerfile to build ContentStore. Fix success purchase message markup.
This commit is contained in:
@@ -15,6 +15,7 @@ COPY ./modules/Entertainment/*.csproj ./modules/Entertainment/
|
|||||||
COPY ./modules/UserGroupTag/*.csproj ./modules/UserGroupTag/
|
COPY ./modules/UserGroupTag/*.csproj ./modules/UserGroupTag/
|
||||||
COPY ./modules/ChatQuotes/*.csproj ./modules/ChatQuotes/
|
COPY ./modules/ChatQuotes/*.csproj ./modules/ChatQuotes/
|
||||||
COPY ./modules/Reputation/*.csproj ./modules/Reputation/
|
COPY ./modules/Reputation/*.csproj ./modules/Reputation/
|
||||||
|
COPY ./modules/ContentStore/*.csproj ./modules/ContentStore/
|
||||||
RUN dotnet restore Kruzya.TelegramBot.sln
|
RUN dotnet restore Kruzya.TelegramBot.sln
|
||||||
|
|
||||||
# Copy all project files
|
# Copy all project files
|
||||||
|
|||||||
@@ -117,7 +117,10 @@ public class Store : BotEventHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
await _reputation.IncrementReputationAsync(Chat, From, -storeItem.Price);
|
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 randomMedia = await mediaService!.GetRandomMediaAsync();
|
||||||
var file = new InputOnlineFile(randomMedia.Url);
|
var file = new InputOnlineFile(randomMedia.Url);
|
||||||
|
|||||||
Reference in New Issue
Block a user