1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-07-01 05:47:47 +00:00
tgbotapi/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/bot/BaseRequestsExecutor.kt

17 lines
674 B
Kotlin
Raw Normal View History

2018-12-26 08:07:24 +00:00
package com.github.insanusmokrassar.TelegramBotAPI.bot
2019-07-25 08:25:18 +00:00
import com.github.insanusmokrassar.TelegramBotAPI.utils.TelegramAPIUrlsKeeper
2018-12-26 08:07:24 +00:00
abstract class BaseRequestsExecutor(
2019-07-25 08:25:18 +00:00
protected val telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper
2018-12-26 08:07:24 +00:00
) : RequestsExecutor {
2019-07-25 08:25:18 +00:00
@Deprecated("Deprecated due to new TelegramAPIUrlKeeper API", ReplaceWith("telegramAPIUrlsKeeper.commonAPIUrl"))
protected val baseUrl: String
get() = telegramAPIUrlsKeeper.commonAPIUrl
@Deprecated("Deprecated due to new TelegramAPIUrlKeeper API")
constructor(
token: String,
hostUrl: String = "https://api.telegram.org"
) : this (TelegramAPIUrlsKeeper(token, hostUrl))
2018-12-26 08:07:24 +00:00
}