mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
add SetWebhook factory which can be used without certificate file
This commit is contained in:
parent
f4b7bb42d6
commit
057d902883
@ -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
|
@Serializable
|
||||||
data class SetWebhook internal constructor(
|
data class SetWebhook internal constructor(
|
||||||
@SerialName(urlField)
|
@SerialName(urlField)
|
||||||
|
Loading…
Reference in New Issue
Block a user