1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00

remove file link maker

This commit is contained in:
InsanusMokrassar 2020-01-20 22:38:45 +06:00
parent f99873dd70
commit 5f593439a3
2 changed files with 0 additions and 8 deletions

View File

@ -76,7 +76,6 @@ while they can work incorrectly
* Added links utils:
* `makeLinkToMessage` have two signatures - for direct creating using username and for abstract creating using
chat id
* `makeFileLink` is unsafe way to create file link
## 0.21.0 TelegramBotAPI 4.5

View File

@ -1,6 +1,5 @@
package com.github.insanusmokrassar.TelegramBotAPI.utils
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatId
import com.github.insanusmokrassar.TelegramBotAPI.types.MessageIdentifier
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.PrivateChat
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.UsernameChat
@ -35,9 +34,3 @@ fun makeLinkToMessage(
else -> return null
}
}
@PreviewFeature
fun makeFileLink(
botToken: String,
filePath: String
) = "https://api.telegram.org/file/bot$botToken/$filePath"