ktgbotapi
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ktgbotapi
tgbotapi.core
/
dev.inmo.tgbotapi.utils
/
TelegramAPIUrlsKeeper
Telegram
APIUrls
Keeper
class
TelegramAPIUrlsKeeper
(
token
:
String
,
hostUrl
:
String
=
telegramBotAPIDefaultUrl
,
urlsSuffixes
:
String
=
""
)
Members
Members & Extensions
Constructors
Telegram
APIUrls
Keeper
Link copied to clipboard
constructor
(
token
:
String
,
testServer
:
Boolean
,
hostUrl
:
String
=
telegramBotAPIDefaultUrl
)
constructor
(
token
:
String
,
hostUrl
:
String
=
telegramBotAPIDefaultUrl
,
urlsSuffixes
:
String
=
""
)
Properties
common
APIUrl
Link copied to clipboard
val
commonAPIUrl
:
String
file
Base
Url
Link copied to clipboard
val
fileBaseUrl
:
String
web
App
Data
Secret
Key
Link copied to clipboard
val
webAppDataSecretKey
:
String
web
App
Data
Secret
Key
Hash
Link copied to clipboard
val
webAppDataSecretKeyHash
:
Hash
Functions
check
Web
App
Data
Link copied to clipboard
fun
checkWebAppData
(
rawData
:
String
,
hash
:
String
)
:
Boolean
create
File
Link
Url
Link copied to clipboard
fun
createFileLinkUrl
(
filePath
:
String
)
:
String
resolve
File
URL
Link copied to clipboard
fun
TelegramAPIUrlsKeeper
.
resolveFileURL
(
file
:
PathedFile
)
:
String