Files

27 lines
782 B
C#
Raw Permalink Normal View History

2022-02-16 18:08:02 +02:00
using Telegram.Bot.Types.Enums;
2022-02-16 17:07:30 +02:00
using West.TelegramBot.ContentStore.Model;
namespace West.TelegramBot.ContentStore.Service;
public class AnimBoobsService : IRandomMediaService
{
private readonly HttpClient _httpClient;
public StoreItem StoreItem { get; } = new("anim_boobs", "Сиськи движущиеся", 120, 40);
2022-02-16 17:07:30 +02:00
public AnimBoobsService()
{
_httpClient = new HttpClient()
{
BaseAddress = new Uri("https://westdev.me/_boobs/")
};
}
public async Task<RandomMedia> GetRandomMediaAsync()
{
var fileName = await _httpClient.GetStringAsync("index.php");
return new RandomMedia($"https://westdev.me/_boobs/media/{fileName}")
{
Type = InputMediaType.Video
};
}
}