2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.bot
|
|
|
|
|
2019-01-24 00:37:39 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.useWith
|
2018-12-26 08:07:24 +00:00
|
|
|
import okhttp3.OkHttpClient
|
|
|
|
|
2019-01-24 01:00:29 +00:00
|
|
|
@Deprecated(
|
|
|
|
"Replaced in settings package",
|
|
|
|
ReplaceWith("ProxySettings", "com.github.insanusmokrassar.TelegramBotAPI.bot.settings.ProxySettings")
|
2018-12-26 08:07:24 +00:00
|
|
|
)
|
2019-01-24 01:00:29 +00:00
|
|
|
typealias ProxySettings = com.github.insanusmokrassar.TelegramBotAPI.bot.settings.ProxySettings
|
2018-12-26 08:07:24 +00:00
|
|
|
|
2019-01-24 00:37:39 +00:00
|
|
|
|
|
|
|
@Deprecated(
|
|
|
|
"Replaced in Ktor package",
|
|
|
|
ReplaceWith("useWith", "com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.useWith")
|
|
|
|
)
|
|
|
|
fun OkHttpClient.Builder.useWith(proxySettings: ProxySettings) = useWith(proxySettings)
|