telegramBot improvements

This commit is contained in:
InsanusMokrassar committed 2020-11-06 12:07:46 +06:00
1 parent cf47cee36a
commit c89aa7b9ba
3 files changed
+26 -8

No files matched your search

@@ -1,8 +1,10 @@
package dev.inmo.tgbotapi.utils
const val telegramBotAPIDefaultUrl = "https://api.telegram.org"
class TelegramAPIUrlsKeeper(
token: String,
hostUrl: String = "https://api.telegram.org"
hostUrl: String = telegramBotAPIDefaultUrl
) {
val commonAPIUrl = "$hostUrl/bot$token"
val fileBaseUrl = "$hostUrl/file/bot$token"