mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[store] Make store use AllowNSFW option
This commit is contained in:
@@ -22,7 +22,7 @@ public abstract class SomeRandomApiAbstractService : IRandomMediaService
|
||||
public async Task<RandomMedia> GetRandomMediaAsync()
|
||||
{
|
||||
var response = await _httpClient.GetStringAsync($"https://some-random-api.com/animal/{ApiId}");
|
||||
var image = JsonConvert.DeserializeObject<SomeRandomApiAnimalResponse>(response);
|
||||
var image = JsonConvert.DeserializeObject<SomeRandomApiAnimalResponse>(response)!;
|
||||
|
||||
return new RandomMedia(new InputFileUrl(image.Image), image.Fact);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user