java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatPermissions
- Enclosing class:
- TdApi
Describes actions that a user is allowed to take in a chat.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
True, if the user may add a web page preview to their messages.boolean
True, if the user can change the chat title, photo, and other settings.boolean
True, if the user can invite new users to the chat.boolean
True, if the user can manage topics.boolean
True, if the user can pin messages.boolean
True, if the user can send music files.boolean
True, if the user can send text messages, contacts, invoices, locations, and venues.boolean
True, if the user can send documents.boolean
True, if the user can send animations, games, stickers, and dice and use inline bots.boolean
True, if the user can send audio photos.boolean
True, if the user can send polls.boolean
True, if the user can send video notes.boolean
True, if the user can send audio videos.boolean
True, if the user can send voice notes.static final int
Identifier uniquely determining type of the object. -
Constructor Summary
ConstructorDescriptionDescribes actions that a user is allowed to take in a chat.ChatPermissions
(boolean canSendBasicMessages, boolean canSendAudios, boolean canSendDocuments, boolean canSendPhotos, boolean canSendVideos, boolean canSendVideoNotes, boolean canSendVoiceNotes, boolean canSendPolls, boolean canSendOtherMessages, boolean canAddWebPagePreviews, boolean canChangeInfo, boolean canInviteUsers, boolean canPinMessages, boolean canManageTopics) Describes actions that a user is allowed to take in a chat.ChatPermissions
(DataInput input) Describes actions that a user is allowed to take in a chat. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
canSendBasicMessages
public boolean canSendBasicMessagesTrue, if the user can send text messages, contacts, invoices, locations, and venues. -
canSendAudios
public boolean canSendAudiosTrue, if the user can send music files. -
canSendDocuments
public boolean canSendDocumentsTrue, if the user can send documents. -
canSendPhotos
public boolean canSendPhotosTrue, if the user can send audio photos. -
canSendVideos
public boolean canSendVideosTrue, if the user can send audio videos. -
canSendVideoNotes
public boolean canSendVideoNotesTrue, if the user can send video notes. -
canSendVoiceNotes
public boolean canSendVoiceNotesTrue, if the user can send voice notes. -
canSendPolls
public boolean canSendPollsTrue, if the user can send polls. -
canSendOtherMessages
public boolean canSendOtherMessagesTrue, if the user can send animations, games, stickers, and dice and use inline bots. -
canAddWebPagePreviews
public boolean canAddWebPagePreviewsTrue, if the user may add a web page preview to their messages. -
canChangeInfo
public boolean canChangeInfoTrue, if the user can change the chat title, photo, and other settings. -
canInviteUsers
public boolean canInviteUsersTrue, if the user can invite new users to the chat. -
canPinMessages
public boolean canPinMessagesTrue, if the user can pin messages. -
canManageTopics
public boolean canManageTopicsTrue, if the user can manage topics. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatPermissions
public ChatPermissions()Describes actions that a user is allowed to take in a chat. -
ChatPermissions
public ChatPermissions(boolean canSendBasicMessages, boolean canSendAudios, boolean canSendDocuments, boolean canSendPhotos, boolean canSendVideos, boolean canSendVideoNotes, boolean canSendVoiceNotes, boolean canSendPolls, boolean canSendOtherMessages, boolean canAddWebPagePreviews, boolean canChangeInfo, boolean canInviteUsers, boolean canPinMessages, boolean canManageTopics) Describes actions that a user is allowed to take in a chat.- Parameters:
canSendBasicMessages
- True, if the user can send text messages, contacts, invoices, locations, and venues.canSendAudios
- True, if the user can send music files.canSendDocuments
- True, if the user can send documents.canSendPhotos
- True, if the user can send audio photos.canSendVideos
- True, if the user can send audio videos.canSendVideoNotes
- True, if the user can send video notes.canSendVoiceNotes
- True, if the user can send voice notes.canSendPolls
- True, if the user can send polls.canSendOtherMessages
- True, if the user can send animations, games, stickers, and dice and use inline bots.canAddWebPagePreviews
- True, if the user may add a web page preview to their messages.canChangeInfo
- True, if the user can change the chat title, photo, and other settings.canInviteUsers
- True, if the user can invite new users to the chat.canPinMessages
- True, if the user can pin messages.canManageTopics
- True, if the user can manage topics.
-
ChatPermissions
Describes actions that a user is allowed to take in a chat.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-