ChatPermissions

data class ChatPermissions(val canSendMessages: Boolean? = null, val canSendAudios: Boolean? = null, val canSendDocuments: Boolean? = null, val canSendPhotos: Boolean? = null, val canSendVideos: Boolean? = null, val canSendVideoNotes: Boolean? = null, val canSendVoiceNotes: Boolean? = null, val canSendPolls: Boolean? = null, val canSendOtherMessages: Boolean? = null, val canAddWebPagePreviews: Boolean? = null, val canChangeInfo: Boolean? = null, val canInviteUsers: Boolean? = null, val canPinMessages: Boolean? = null, val canManageTopics: Boolean? = null)(source)

ChatPermissions

Describes actions that a non-administrator user is allowed to take in a chat.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(canSendMessages: Boolean? = null, canSendAudios: Boolean? = null, canSendDocuments: Boolean? = null, canSendPhotos: Boolean? = null, canSendVideos: Boolean? = null, canSendVideoNotes: Boolean? = null, canSendVoiceNotes: Boolean? = null, canSendPolls: Boolean? = null, canSendOtherMessages: Boolean? = null, canAddWebPagePreviews: Boolean? = null, canChangeInfo: Boolean? = null, canInviteUsers: Boolean? = null, canPinMessages: Boolean? = null, canManageTopics: Boolean? = null)

Properties

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

Optional. True, if the user is allowed to add web page previews to their messages

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

Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups

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

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

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

Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages

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

Optional. True, if the user is allowed to pin messages. Ignored in public supergroups

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

Optional. True, if the user is allowed to send audios

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

Optional. True, if the user is allowed to send documents

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

Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues

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

Optional. True, if the user is allowed to send animations, games, stickers and use inline bots

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

Optional. True, if the user is allowed to send photos

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

Optional. True, if the user is allowed to send polls

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

Optional. True, if the user is allowed to send video notes

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

Optional. True, if the user is allowed to send videos

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

Optional. True, if the user is allowed to send voice notes