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:
parent
f99873dd70
commit
5f593439a3
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user