diff --git a/TelegramBotAPI/build.gradle b/TelegramBotAPI/build.gradle index 583e4cf72d..ff5a6c7704 100644 --- a/TelegramBotAPI/build.gradle +++ b/TelegramBotAPI/build.gradle @@ -83,4 +83,12 @@ kotlin { } } } + + targets.all { + compilations.all { + kotlinOptions { + freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi", "-Xopt-in=kotlin.RequiresOptIn"] + } + } + } }