Files

20 lines
449 B
C#
Raw Permalink Normal View History

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
{
2025-02-09 17:40:03 +02:00
public RandomMedia(InputFile 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
}
2025-02-09 17:40:03 +02:00
public InputFile 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;
}