[store] refactor, add new purchasables

This commit is contained in:
Andriy
2022-11-14 00:23:36 +02:00
parent c50d5f63ba
commit 36e5ddd5af
9 changed files with 149 additions and 16 deletions
+5 -5
View File
@@ -1,17 +1,17 @@
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
using Telegram.Bot.Types.Enums;
using Telegram.Bot.Types.InputFiles;
namespace West.TelegramBot.ContentStore.Model;
public class RandomMedia
{
public RandomMedia(string url, string? caption = null)
public RandomMedia(InputOnlineFile file, string? caption = null)
{
Url = url;
File = file;
Caption = caption;
}
public string Url;
public InputOnlineFile File;
public string? Caption;
public InputMediaType Type { get; set; } = InputMediaType.Photo;