1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-15 21:29:25 +00:00

telegramBot improvements

This commit is contained in:
2020-11-06 12:07:46 +06:00
parent cf47cee36a
commit c89aa7b9ba
3 changed files with 26 additions and 8 deletions

View File

@@ -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"