1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-10-01 15:06:10 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.api.webhook/index.md
2021-03-17 15:18:37 +00:00

5.0 KiB

//docs/dev.inmo.tgbotapi.extensions.api.webhook

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

Functions

Name Summary
deleteWebhook [common]
Content
suspend fun TelegramBot.deleteWebhook(): Boolean


getWebhookInfo [common]
Content
suspend fun TelegramBot.getWebhookInfo(): WebhookInfo


setWebhookInfo [common]
Content
suspend fun TelegramBot.setWebhookInfo(url: String, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): Boolean
More info
Use this method to send information about webhook (like url)


[common]
Content
suspend fun TelegramBot.setWebhookInfo(url: String, certificate: FileId, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): Boolean
suspend fun TelegramBot.setWebhookInfo(url: String, certificate: MultipartFile, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): Boolean
More info
Use this method to send information about webhook (like url and certificate)