mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-10-01 23:16:10 +00:00
4.4 KiB
4.4 KiB
//docs/dev.inmo.tgbotapi.requests.webhook/SetWebhook
SetWebhook
[common] data class SetWebhook : SetWebhookRequest, DataRequest<Boolean>
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, 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 | [common] Content open override fun method(): String |
Properties
Name | Summary |
---|---|
allowedUpdates | [common] val allowedUpdates: List<String>? = null |
certificateFile | [common] val certificateFile: String? = null |
dropPendingUpdates | [common] val dropPendingUpdates: Boolean? = null |
ipAddress | [common] val ipAddress: String? = null |
maxAllowedConnections | [common] val maxAllowedConnections: Int? = null |
requestSerializer | [common] open override val requestSerializer: <*> |
resultDeserializer | [common] open override val resultDeserializer: <Boolean> |
url | [common] val url: String |