Package dev.inmo.tgbotapi.requests.webhook

Types

DeleteWebhook
Link copied to clipboard
common
class DeleteWebhook : SimpleRequest<Boolean>
GetWebhookInfo
Link copied to clipboard
common
class GetWebhookInfo : SimpleRequest<WebhookInfo>
MultipartSetWebhookRequest
Link copied to clipboard
common
class MultipartSetWebhookRequest(url: String, certificate: MultipartFile, ipAddress: String?, maxAllowedConnections: Int?, allowedUpdates: List<String>?, dropPendingUpdates: Boolean?) : SetWebhookRequest, MultipartRequest<Boolean>
SetWebhook
Link copied to clipboard
common
data class SetWebhook : SetWebhookRequest, DataRequest<Boolean>
Use this method to specify a url and receive incoming updates via an outgoing webhook.
SetWebhookRequest
Link copied to clipboard
common
sealed class SetWebhookRequest : Request<Boolean>

Functions

SetWebhook
Link copied to clipboard
common
fun SetWebhook(url: String, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): SetWebhook
Use this method to specify a url and receive incoming updates via an outgoing webhook.
fun SetWebhook(url: String, certificate: FileId, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): SetWebhook
fun SetWebhook(url: String, certificate: MultipartFile, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): MultipartSetWebhookRequest
fun SetWebhook(url: String, certificate: InputFile, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): SetWebhookRequest
Use this method to specify a url and receive incoming updates via an outgoing webhook.