mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
13 lines
461 B
C#
13 lines
461 B
C#
using Telegram.Bot.Types;
|
|
using West.TelegramBot.ContentStore.Model;
|
|
|
|
namespace West.TelegramBot.ContentStore.Service;
|
|
|
|
public class CapyApiService : IRandomMediaService
|
|
{
|
|
public StoreItem StoreItem { get; } = new("capybara", "Капибара", 60, 120);
|
|
public Task<RandomMedia> GetRandomMediaAsync()
|
|
{
|
|
return Task.FromResult(new RandomMedia(new InputFileUrl($"https://api.capy.lol/v1/capybara?{new Random().Next(0, 10000)}")));
|
|
}
|
|
} |