1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-07-03 14:50:49 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.requests.webhook/index.md
2021-03-17 15:18:37 +00:00

7.1 KiB

//docs/dev.inmo.tgbotapi.requests.webhook

Package dev.inmo.tgbotapi.requests.webhook

Types

Name Summary
DeleteWebhook [common]
Content
class DeleteWebhook : SimpleRequest<Boolean>


GetWebhookInfo [common]
Content
class GetWebhookInfo : SimpleRequest<WebhookInfo>


MultipartSetWebhookRequest [common]
Content
class MultipartSetWebhookRequest(url: String, certificate: MultipartFile, ipAddress: String?, maxAllowedConnections: Int?, allowedUpdates: List<String>?, dropPendingUpdates: Boolean?) : SetWebhookRequest, MultipartRequest<Boolean>


SetWebhook [common]
Content
data class SetWebhook : SetWebhookRequest, DataRequest<Boolean>
More info
Use this method to specify a url and receive incoming updates via an outgoing webhook.


SetWebhookRequest [common]
Content
sealed class SetWebhookRequest : Request<Boolean>


Functions

Name Summary
SetWebhook [common]
Content
fun SetWebhook(url: String, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): SetWebhook
fun SetWebhook(url: String, certificate: InputFile, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): SetWebhookRequest
More info
Use this method to specify a url and receive incoming updates via an outgoing webhook.


[common]
Content
fun SetWebhook(url: String, certificate: FileId, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): SetWebhook
fun SetWebhook(url: String, certificate: MultipartFile, ipAddress: String? = null, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null, dropPendingUpdates: Boolean? = null): MultipartSetWebhookRequest