# dev.inmo.tgbotapi.requests.webhook

docs

# Package dev.inmo.tgbotapi.requests.webhook

## Types

DeleteWebhook
Link copied to clipboard
class DeleteWebhook : SimpleRequest < Boolean >
Content copied to clipboard
GetWebhookInfo
Link copied to clipboard
class GetWebhookInfo : SimpleRequest < WebhookInfo >
Content copied to clipboard
MultipartSetWebhookRequest
Link copied to clipboard
class MultipartSetWebhookRequest ( url: String , certificate: MultipartFile , ipAddress: String ? = null, maxAllowedConnections: Int ? = null, allowedUpdates: List < String >? = null, dropPendingUpdates: Boolean ? = null) : SetWebhookRequest, MultipartRequest < Boolean >
Content copied to clipboard
SetWebhook
Link copied to clipboard
data class SetWebhook : SetWebhookRequest, DataRequest < Boolean >
Content copied to clipboard

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.

SetWebhookRequest
Link copied to clipboard
sealed class SetWebhookRequest : Request < Boolean >
Content copied to clipboard

## Functions

SetWebhook
Link copied to clipboard
fun SetWebhook ( url: String , ipAddress: String ? = null, maxAllowedConnections: Int ? = null, allowedUpdates: List < String >? = null, dropPendingUpdates: Boolean ? = null): SetWebhook
Content copied to clipboard
fun SetWebhook ( url: String , certificate: InputFile , ipAddress: String ? = null, maxAllowedConnections: Int ? = null, allowedUpdates: List < String >? = null, dropPendingUpdates: Boolean ? = null): SetWebhookRequest
Content copied to clipboard

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.

fun SetWebhook ( url: String , certificate: FileId , ipAddress: String ? = null, maxAllowedConnections: Int ? = null, allowedUpdates: List < String >? = null, dropPendingUpdates: Boolean ? = null): SetWebhook
Content copied to clipboard
fun SetWebhook ( url: String , certificate: MultipartFile , ipAddress: String ? = null, maxAllowedConnections: Int ? = null, allowedUpdates: List < String >? = null, dropPendingUpdates: Boolean ? = null): MultipartSetWebhookRequest
Content copied to clipboard