Package dev.inmo.tgbotapi.extensions.api.webhook

Functions

deleteWebhook
Link copied to clipboard
common
suspend fun RequestsExecutor.deleteWebhook(): Boolean
getWebhookInfo
Link copied to clipboard
common
suspend fun RequestsExecutor.getWebhookInfo(): WebhookInfo
setWebhookInfo
Link copied to clipboard

Use this method to send information about webhook (like url)

common
suspend fun RequestsExecutor.setWebhookInfo(url: String, ipAddress: String?, maxAllowedConnections: Int?, allowedUpdates: List<String>?, dropPendingUpdates: Boolean?): Boolean

Use this method to send information about webhook (like url and certificate)

common
suspend fun RequestsExecutor.setWebhookInfo(url: String, certificate: FileId, ipAddress: String?, maxAllowedConnections: Int?, allowedUpdates: List<String>?, dropPendingUpdates: Boolean?): Boolean
suspend fun RequestsExecutor.setWebhookInfo(url: String, certificate: MultipartFile, ipAddress: String?, maxAllowedConnections: Int?, allowedUpdates: List<String>?, dropPendingUpdates: Boolean?): Boolean