2023-01-02 19:01:03 +02:00
|
|
|
using Telegram.Bot.Types;
|
|
|
|
|
using Telegram.Bot.Types.Enums;
|
2022-02-16 17:07:30 +02:00
|
|
|
|
|
|
|
|
namespace West.TelegramBot.ContentStore.Model;
|
|
|
|
|
|
|
|
|
|
public class RandomMedia
|
|
|
|
|
{
|
2023-01-02 23:31:05 +02:00
|
|
|
public RandomMedia(IInputFile file, string? caption = null, bool nsfw = false)
|
2022-02-16 17:07:30 +02:00
|
|
|
{
|
2022-11-14 00:23:36 +02:00
|
|
|
File = file;
|
2022-02-16 17:07:30 +02:00
|
|
|
Caption = caption;
|
2023-01-02 23:31:05 +02:00
|
|
|
Nsfw = nsfw;
|
2022-02-16 17:07:30 +02:00
|
|
|
}
|
|
|
|
|
|
2023-01-02 19:01:03 +02:00
|
|
|
public IInputFile File;
|
2022-02-16 17:07:30 +02:00
|
|
|
public string? Caption;
|
2023-01-02 23:31:05 +02:00
|
|
|
public bool Nsfw;
|
2022-02-16 17:07:30 +02:00
|
|
|
|
|
|
|
|
public InputMediaType Type { get; set; } = InputMediaType.Photo;
|
|
|
|
|
}
|