docs / com.github.insanusmokrassar.TelegramBotAPI.extensions.api.webhook

Package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.webhook

Functions

(common)

deleteWebhook

suspend fun RequestsExecutor.deleteWebhook(): Boolean
(common)

getWebhookInfo

suspend fun RequestsExecutor.getWebhookInfo(): WebhookInfo
(common)

setWebhookInfo

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

suspend fun RequestsExecutor.setWebhookInfo(url: String, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null): Boolean

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

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