//[docs](../../../index.md)/[dev.inmo.tgbotapi.requests.webhook](../index.md)/[SetWebhook](index.md) # SetWebhook [common] data class [SetWebhook](index.md) : [SetWebhookRequest](../-set-webhook-request/index.md), [DataRequest](../../dev.inmo.tgbotapi.requests.send.media.base/-data-request/index.md)<[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)> Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the [url](url.md), e.g. https://www.example.com/. Since nobody else knows your bot's token, you can be pretty sure it's us. ## Functions | Name | Summary | |---|---| | [method](method.md)| [common]
Content
open override fun [method](method.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)


| ## Properties | Name | Summary | |---|---| | [allowedUpdates](allowed-updates.md)| [common] val [allowedUpdates](allowed-updates.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>? = null
| | [certificateFile](certificate-file.md)| [common] val [certificateFile](certificate-file.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null
| | [dropPendingUpdates](drop-pending-updates.md)| [common] val [dropPendingUpdates](drop-pending-updates.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? = null
| | [ipAddress](ip-address.md)| [common] val [ipAddress](ip-address.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null
| | [maxAllowedConnections](max-allowed-connections.md)| [common] val [maxAllowedConnections](max-allowed-connections.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? = null
| | [requestSerializer](request-serializer.md)| [common] open override val [requestSerializer](request-serializer.md): <*>
| | [resultDeserializer](result-deserializer.md)| [common] open override val [resultDeserializer](result-deserializer.md): <[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)>
| | [url](url.md)| [common] val [url](url.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
|