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 audio files, documents, photos, videos, video notes, and voice notes.boolean
True, if the user can send text messages, contacts, locations, and venues.boolean
True, if the user can send animations, games, stickers, and dice and use inline bots.boolean
True, if the user can send polls.static final int
-
Constructor Summary
ConstructorDescriptionDescribes actions that a user is allowed to take in a chat.ChatPermissions
(boolean canSendMessages, boolean canSendMediaMessages, 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
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
canSendMessages
public boolean canSendMessagesTrue, if the user can send text messages, contacts, locations, and venues. -
canSendMediaMessages
public boolean canSendMediaMessagesTrue, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies canSendMessages permissions. -
canSendPolls
public boolean canSendPollsTrue, if the user can send polls. Implies canSendMessages permissions. -
canSendOtherMessages
public boolean canSendOtherMessagesTrue, if the user can send animations, games, stickers, and dice and use inline bots. Implies canSendMessages permissions. -
canAddWebPagePreviews
public boolean canAddWebPagePreviewsTrue, if the user may add a web page preview to their messages. Implies canSendMessages permissions. -
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 CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ChatPermissions
public ChatPermissions()Describes actions that a user is allowed to take in a chat. -
ChatPermissions
public ChatPermissions(boolean canSendMessages, boolean canSendMediaMessages, 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:
canSendMessages
- boolean True, if the user can send text messages, contacts, locations, and venues.canSendMediaMessages
- boolean True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies canSendMessages permissions.canSendPolls
- boolean True, if the user can send polls. Implies canSendMessages permissions.canSendOtherMessages
- boolean True, if the user can send animations, games, stickers, and dice and use inline bots. Implies canSendMessages permissions.canAddWebPagePreviews
- boolean True, if the user may add a web page preview to their messages. Implies canSendMessages permissions.canChangeInfo
- boolean True, if the user can change the chat title, photo, and other settings.canInviteUsers
- boolean True, if the user can invite new users to the chat.canPinMessages
- boolean True, if the user can pin messages.canManageTopics
- boolean True, if the user can manage topics.
-
ChatPermissions
Describes actions that a user is allowed to take in a chat.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-