Files
telegram-bot/modules/ContentStore/Model/RandomMedia.cs
2023-01-02 23:31:05 +02:00

20 lines
451 B
C#

using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace West.TelegramBot.ContentStore.Model;
public class RandomMedia
{
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;
}