[store] hide nsfw content behind spoiler

This commit is contained in:
Andriy
2023-01-02 23:31:05 +02:00
parent 996147436b
commit ff78d8e2ae
5 changed files with 26 additions and 7 deletions
+3 -1
View File
@@ -5,14 +5,16 @@ namespace West.TelegramBot.ContentStore.Model;
public class RandomMedia
{
public RandomMedia(IInputFile file, string? caption = null)
public RandomMedia(IInputFile file, string? caption = null, bool nsfw = false)
{
File = file;
Caption = caption;
Nsfw = nsfw;
}
public IInputFile File;
public string? Caption;
public bool Nsfw;
public InputMediaType Type { get; set; } = InputMediaType.Photo;
}