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

Functions

deleteWebhook
Link copied to clipboard
common
suspend fun TelegramBot.deleteWebhook(): Boolean
getWebhookInfo
Link copied to clipboard
common
suspend fun TelegramBot.getWebhookInfo(): WebhookInfo
setWebhookInfo
Link copied to clipboard
common
suspend fun TelegramBot.setWebhookInfo(url: String, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): Boolean
Use this method to send information about webhook (like url)
suspend fun TelegramBot.setWebhookInfo(url: String, certificate: FileId, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): Boolean
Use this method to send information about webhook (like url and certificate)
suspend fun TelegramBot.setWebhookInfo(url: String, certificate: MultipartFile, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): Boolean
Use this method to send information about webhook (like url and certificate)