diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/webhook/SetWebhook.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/webhook/SetWebhook.kt index 852018d5ca..e7e8500499 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/webhook/SetWebhook.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/webhook/SetWebhook.kt @@ -27,6 +27,17 @@ fun SetWebhook( } } +fun SetWebhook( + url: String, + maxAllowedConnections: Int? = null, + allowedUpdates: List? = null +) : Request = SetWebhook( + url, + null, + maxAllowedConnections, + allowedUpdates +) + @Serializable data class SetWebhook internal constructor( @SerialName(urlField)