1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00

add SetWebhook factory which can be used without certificate file

This commit is contained in:
InsanusMokrassar 2019-03-04 10:49:37 +08:00
parent f4b7bb42d6
commit 057d902883

View File

@ -27,6 +27,17 @@ fun SetWebhook(
}
}
fun SetWebhook(
url: String,
maxAllowedConnections: Int? = null,
allowedUpdates: List<String>? = null
) : Request<Boolean> = SetWebhook(
url,
null,
maxAllowedConnections,
allowedUpdates
)
@Serializable
data class SetWebhook internal constructor(
@SerialName(urlField)