SetWebhook

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/<token>. Since nobody else knows your bot's token, you can be pretty sure it's us.

Functions

method
Link copied to clipboard
common
open override fun method(): String

Properties

allowedUpdates
Link copied to clipboard
common
val allowedUpdates: List<String>? = null
certificateFile
Link copied to clipboard
common
val certificateFile: String? = null
dropPendingUpdates
Link copied to clipboard
common
val dropPendingUpdates: Boolean? = null
ipAddress
Link copied to clipboard
common
val ipAddress: String? = null
maxAllowedConnections
Link copied to clipboard
common
val maxAllowedConnections: Int? = null
requestSerializer
Link copied to clipboard
common
open override val requestSerializer: SerializationStrategy<*>
resultDeserializer
Link copied to clipboard
common
open override val resultDeserializer: DeserializationStrategy<Boolean>
url
Link copied to clipboard
common
val url: String