Files
telegram-bot/modules/ContentStore/Model/RandomMedia.cs
T

18 lines
410 B
C#
Raw Normal View History

2022-11-14 00:23:36 +02:00
using Telegram.Bot.Types.Enums;
using Telegram.Bot.Types.InputFiles;
2022-02-16 17:07:30 +02:00
namespace West.TelegramBot.ContentStore.Model;
public class RandomMedia
{
2022-11-14 00:23:36 +02:00
public RandomMedia(InputOnlineFile file, string? caption = null)
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;
}
2022-11-14 00:23:36 +02:00
public InputOnlineFile File;
2022-02-16 17:07:30 +02:00
public string? Caption;
public InputMediaType Type { get; set; } = InputMediaType.Photo;
}