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.

Functions

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

Properties

Link copied to clipboard
Link copied to clipboard
val certificateFile: String? = null
Link copied to clipboard
Link copied to clipboard
val ipAddress: String? = null
Link copied to clipboard
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<Boolean>
Link copied to clipboard
val secretToken: String? = null
Link copied to clipboard
val url: String