ChatAdministratorRights

data class ChatAdministratorRights(val isAnonymous: Boolean, val canManageChat: Boolean, val canDeleteMessages: Boolean, val canManageVideoChats: Boolean, val canRestrictMembers: Boolean, val canPromoteMembers: Boolean, val canChangeInfo: Boolean, val canInviteUsers: Boolean, val canPostStories: Boolean, val canEditStories: Boolean, val canDeleteStories: Boolean, val canPostMessages: Boolean? = null, val canEditMessages: Boolean? = null, val canPinMessages: Boolean? = null, val canManageTopics: Boolean? = null)(source)

ChatAdministratorRights

Represents the rights of an administrator in a chat.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(isAnonymous: Boolean, canManageChat: Boolean, canDeleteMessages: Boolean, canManageVideoChats: Boolean, canRestrictMembers: Boolean, canPromoteMembers: Boolean, canChangeInfo: Boolean, canInviteUsers: Boolean, canPostStories: Boolean, canEditStories: Boolean, canDeleteStories: Boolean, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canPinMessages: Boolean? = null, canManageTopics: Boolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "can_change_info")
val canChangeInfo: Boolean

True, if the user is allowed to change the chat title, photo and other settings

Link copied to clipboard
@SerialName(value = "can_delete_messages")
val canDeleteMessages: Boolean

True, if the administrator can delete messages of other users

Link copied to clipboard
@SerialName(value = "can_delete_stories")
val canDeleteStories: Boolean

True, if the administrator can delete stories posted by other users

Link copied to clipboard
@SerialName(value = "can_edit_messages")
val canEditMessages: Boolean? = null

Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only

Link copied to clipboard
@SerialName(value = "can_edit_stories")
val canEditStories: Boolean

True, if the administrator can edit stories posted by other users

Link copied to clipboard
@SerialName(value = "can_invite_users")
val canInviteUsers: Boolean

True, if the user is allowed to invite new users to the chat

Link copied to clipboard
@SerialName(value = "can_manage_chat")
val canManageChat: Boolean

True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.

Link copied to clipboard
@SerialName(value = "can_manage_topics")
val canManageTopics: Boolean? = null

Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only

Link copied to clipboard
@SerialName(value = "can_manage_video_chats")
val canManageVideoChats: Boolean

True, if the administrator can manage video chats

Link copied to clipboard
@SerialName(value = "can_pin_messages")
val canPinMessages: Boolean? = null

Optional. True, if the user is allowed to pin messages; for groups and supergroups only

Link copied to clipboard
@SerialName(value = "can_post_messages")
val canPostMessages: Boolean? = null

Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only

Link copied to clipboard
@SerialName(value = "can_post_stories")
val canPostStories: Boolean

True, if the administrator can post stories to the chat

Link copied to clipboard
@SerialName(value = "can_promote_members")
val canPromoteMembers: Boolean

True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)

Link copied to clipboard
@SerialName(value = "can_restrict_members")
val canRestrictMembers: Boolean

True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics

Link copied to clipboard
@SerialName(value = "is_anonymous")
val isAnonymous: Boolean

True, if the user's presence in the chat is hidden