diff --git a/telegram-bot/src/jvmTest/kotlin/utils/RandomPicResource.kt b/telegram-bot/src/jvmTest/kotlin/utils/RandomPicResource.kt index df13196bac..70cb8370d6 100644 --- a/telegram-bot/src/jvmTest/kotlin/utils/RandomPicResource.kt +++ b/telegram-bot/src/jvmTest/kotlin/utils/RandomPicResource.kt @@ -6,13 +6,6 @@ abstract class RandomPicSource { abstract fun getPicUrl(): String } -class UnsplashRandomPic : RandomPicSource() { - override fun getPicUrl(height: Int, width: Int): String = - "https://source.unsplash.com/random/${height}x$width?sig=incrementingIdentifier" - - override fun getPicUrl(): String = "https://source.unsplash.com/random/10x10?sig=incrementingIdentifier" -} - class LoremPicsumPic : RandomPicSource() { override fun getPicUrl(height: Int, width: Int): String = "https://picsum.photos/$height/$width" @@ -21,6 +14,6 @@ class LoremPicsumPic : RandomPicSource() { } object RandomPicResource : - ResourcePicker(listOf(UnsplashRandomPic(), LoremPicsumPic())) { + ResourcePicker(listOf(LoremPicsumPic())) { val RANDOM_PIC_URL get() = current.getPicUrl() }