mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
Group chats now have a description
This commit is contained in:
parent
8fbda09d24
commit
c47c82ac43
@ -20,6 +20,7 @@ Changes according to [July 29, 2019 Telegram Bot API update](https://core.telegr
|
||||
* `SpecialRightsChatMember` was added for administrators and restricted members rights union, chat members abstractions
|
||||
was replaced into `abstracts` package and available permissions was updated
|
||||
* `RestrictChatMember` request now accept `permissions` object instead of separated permissions
|
||||
* All `GroupChat` instances have description
|
||||
|
||||
## 0.16.0 Bot API 4.3
|
||||
|
||||
|
@ -8,6 +8,7 @@ import com.github.insanusmokrassar.TelegramBotAPI.types.message.RawMessage
|
||||
data class GroupChatImpl(
|
||||
override val id: ChatId,
|
||||
override val title: String? = null,
|
||||
override val description: String? = null,
|
||||
override val inviteLink: String? = null,
|
||||
override val chatPhoto: ChatPhoto? = null,
|
||||
override val pinnedMessage: RawMessage? = null,
|
||||
|
@ -29,6 +29,7 @@ data class RawChat(
|
||||
"group" -> GroupChatImpl(
|
||||
id,
|
||||
title,
|
||||
description,
|
||||
invite_link,
|
||||
chatPhoto,
|
||||
pinned_message,
|
||||
|
@ -16,4 +16,4 @@ data class SupergroupChat(
|
||||
val stickerSetName: String? = null,
|
||||
val canSetStickerSet: Boolean = false,
|
||||
override val permissions: ChatPermissions? = null
|
||||
) : GroupChat, UsernameChat, DescriptionChat
|
||||
) : GroupChat, UsernameChat
|
||||
|
@ -2,6 +2,6 @@ package com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts
|
||||
|
||||
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.ChatPermissions
|
||||
|
||||
interface GroupChat : PublicChat {
|
||||
interface GroupChat : PublicChat, DescriptionChat {
|
||||
val permissions: ChatPermissions?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user