mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
fixes
This commit is contained in:
parent
efc2681da8
commit
0532dbb1ae
@ -34,6 +34,16 @@ fun SetWebhook(
|
|||||||
allowedUpdates
|
allowedUpdates
|
||||||
)
|
)
|
||||||
|
|
||||||
|
fun SetWebhook(
|
||||||
|
url: String,
|
||||||
|
certificate: InputFile,
|
||||||
|
maxAllowedConnections: Int? = null,
|
||||||
|
allowedUpdates: List<String>? = null
|
||||||
|
): Request<Boolean> = when (certificate) {
|
||||||
|
is MultipartFile -> SetWebhook(url, certificate as MultipartFile, maxAllowedConnections, allowedUpdates)
|
||||||
|
is FileId -> SetWebhook(url, certificate as FileId, maxAllowedConnections, allowedUpdates)
|
||||||
|
}
|
||||||
|
|
||||||
fun SetWebhook(
|
fun SetWebhook(
|
||||||
url: String,
|
url: String,
|
||||||
maxAllowedConnections: Int? = null,
|
maxAllowedConnections: Int? = null,
|
||||||
|
Loading…
Reference in New Issue
Block a user