1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +00:00

allMembersAreAdmins was removed

This commit is contained in:
InsanusMokrassar 2019-08-12 13:48:38 +06:00
parent 394bec1805
commit 6310dceacf
5 changed files with 1 additions and 6 deletions

View File

@ -16,6 +16,7 @@ Changes according to [July 29, 2019 Telegram Bot API update](https://core.telegr
* `Sticker` and `StickerSet` now have field `isAnimated`
* `ChatPermissions` object was added, `GroupChat` interface got `permissions` field, request `SetChatPermissions` was added
* `GroupChat` object now have no field `allMembersAreAdmins`
## 0.16.0 Bot API 4.3

View File

@ -8,7 +8,6 @@ import com.github.insanusmokrassar.TelegramBotAPI.types.message.RawMessage
data class GroupChatImpl(
override val id: ChatId,
override val title: String? = null,
override val allMembersAreAdmins: Boolean,
override val inviteLink: String? = null,
override val chatPhoto: ChatPhoto? = null,
override val pinnedMessage: RawMessage? = null,

View File

@ -14,7 +14,6 @@ data class RawChat(
private val username: Username? = null,
private val first_name: String? = null,
private val last_name: String? = null,
private val all_members_are_administrators: Boolean? = null,
private val description: String? = null,
private val invite_link: String? = null,
private val pinned_message: RawMessage? = null,
@ -30,7 +29,6 @@ data class RawChat(
"group" -> GroupChatImpl(
id,
title,
all_members_are_administrators ?: false,
invite_link,
chatPhoto,
pinned_message,
@ -41,7 +39,6 @@ data class RawChat(
title,
username,
description,
all_members_are_administrators ?: false,
invite_link,
chatPhoto,
pinned_message,

View File

@ -10,7 +10,6 @@ data class SupergroupChat(
override val title: String? = null,
override val username: Username? = null,
override val description: String? = null,
override val allMembersAreAdmins: Boolean,
override val inviteLink: String? = null,
override val chatPhoto: ChatPhoto? = null,
override val pinnedMessage: RawMessage? = null,

View File

@ -3,6 +3,5 @@ package com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.ChatPermissions
interface GroupChat : PublicChat {
val allMembersAreAdmins: Boolean
val permissions: ChatPermissions?
}