mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
DeleteWebhook request
This commit is contained in:
parent
03c90bb204
commit
57bf40a4f9
@ -73,6 +73,7 @@ of `]` in links titles
|
|||||||
* `kotlin coroutines` version `1.1.1` -> `1.2.0`
|
* `kotlin coroutines` version `1.1.1` -> `1.2.0`
|
||||||
* `kotlin serialization` version `0.10.0` -> `0.11.0`
|
* `kotlin serialization` version `0.10.0` -> `0.11.0`
|
||||||
* `ktor` version `1.1.2` -> `1.1.3`
|
* `ktor` version `1.1.2` -> `1.1.3`
|
||||||
|
* Added `DeleteWebhook` request
|
||||||
|
|
||||||
## 0.11.0
|
## 0.11.0
|
||||||
|
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.github.insanusmokrassar.TelegramBotAPI.requests.webhook
|
||||||
|
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
|
||||||
|
import kotlinx.serialization.KSerializer
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.internal.BooleanSerializer
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
class DeleteWebhook : SimpleRequest<Boolean> {
|
||||||
|
override fun method(): String = "deleteWebhook"
|
||||||
|
|
||||||
|
override fun resultSerializer(): KSerializer<Boolean> = BooleanSerializer
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user