SetWebhook

@Serializable
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.

Properties

Link copied to clipboard
@SerialName(value = "allowed_updates")
val allowedUpdates: List<String>?
Link copied to clipboard
@SerialName(value = "certificate")
val certificateFile: String? = null
Link copied to clipboard
@SerialName(value = "drop_pending_updates")
val dropPendingUpdates: Boolean? = null
Link copied to clipboard
@SerialName(value = "ip_address")
val ipAddress: String? = null
Link copied to clipboard
@SerialName(value = "max_connections")
val maxAllowedConnections: Int? = null
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<Boolean>
Link copied to clipboard
@SerialName(value = "secret_token")
val secretToken: String? = null
Link copied to clipboard
@SerialName(value = "url")
val url: String

Functions

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