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

Functions

Link copied to clipboard
suspend fun TelegramBot.deleteWebhook(): Boolean
Link copied to clipboard
suspend fun TelegramBot.getWebhookInfo(): WebhookInfo
Link copied to clipboard
suspend fun TelegramBot.setWebhookInfo(    url: String,     ipAddress: String? = null,     maxAllowedConnections: Int? = null,     allowedUpdates: List<String>? = ALL_UPDATES_LIST,     dropPendingUpdates: Boolean? = null,     secretToken: String? = 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>? = ALL_UPDATES_LIST,     dropPendingUpdates: Boolean? = null,     secretToken: String? = null): Boolean
suspend fun TelegramBot.setWebhookInfo(    url: String,     certificate: MultipartFile,     ipAddress: String? = null,     maxAllowedConnections: Int? = null,     allowedUpdates: List<String>? = ALL_UPDATES_LIST,     dropPendingUpdates: Boolean? = null,     secretToken: String? = null): Boolean

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