1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 09:07:12 +00:00

added the field slowModeDelay to the ExtendedSupergroupChat objects

This commit is contained in:
InsanusMokrassar 2020-01-01 21:38:05 +06:00
parent 8b93922f82
commit 4dd2a8437c
4 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,8 @@
## 0.21.0 TelegramBotAPI 4.5 ## 0.21.0 TelegramBotAPI 4.5
* Added the field `slowModeDelay` to the `ExtendedSupergroupChat` objects.
## 0.20.0 MPP Migration ## 0.20.0 MPP Migration
* Time library change: `joda-time` -> `com.soywiz.korlibs.klock:klock` * Time library change: `joda-time` -> `com.soywiz.korlibs.klock:klock`

View File

@ -57,6 +57,7 @@ const val languageCodeField = "language_code"
const val textEntitiesField = "text_entities" const val textEntitiesField = "text_entities"
const val stickerSetNameField = "set_name" const val stickerSetNameField = "set_name"
const val stickerSetNameFullField = "sticker_set_name" const val stickerSetNameFullField = "sticker_set_name"
const val slowModeDelayField = "slow_mode_delay"
const val maskPositionField = "mask_position" const val maskPositionField = "mask_position"
const val phoneNumberField = "phone_number" const val phoneNumberField = "phone_number"
const val userIdField = "user_id" const val userIdField = "user_id"

View File

@ -4,6 +4,7 @@ import com.github.insanusmokrassar.TelegramBotAPI.types.StickerSetName
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.SupergroupChat import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.SupergroupChat
interface ExtendedSupergroupChat : SupergroupChat, ExtendedGroupChat { interface ExtendedSupergroupChat : SupergroupChat, ExtendedGroupChat {
val slowModeDelay: Long?
val stickerSetName: StickerSetName? val stickerSetName: StickerSetName?
val canSetStickerSet: Boolean val canSetStickerSet: Boolean
} }

View File

@ -29,6 +29,8 @@ data class ExtendedSupergroupChatImpl(
override val pinnedMessage: Message? = null, override val pinnedMessage: Message? = null,
@SerialName(stickerSetNameFullField) @SerialName(stickerSetNameFullField)
override val stickerSetName: StickerSetName? = null, override val stickerSetName: StickerSetName? = null,
@SerialName(slowModeDelayField)
override val slowModeDelay: Long? = null,
@SerialName(canSetStickerSetField) @SerialName(canSetStickerSetField)
override val canSetStickerSet: Boolean = false override val canSetStickerSet: Boolean = false
) : ExtendedSupergroupChat ) : ExtendedSupergroupChat