Package org.drinkless.tdlib
Class TdApi.ChatPermissions
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.ChatPermissions
-
- Enclosing class:
- TdApi
public static class TdApi.ChatPermissions extends TdApi.Object
Describes actions that a user is allowed to take in a chat.
-
-
Field Summary
Fields Modifier and Type Field Description booleancanAddWebPagePreviewsTrue, if the user may add a web page preview to their messages.booleancanChangeInfoTrue, if the user can change the chat title, photo, and other settings.booleancanInviteUsersTrue, if the user can invite new users to the chat.booleancanPinMessagesTrue, if the user can pin messages.booleancanSendMediaMessagesTrue, if the user can send audio files, documents, photos, videos, video notes, and voice notes.booleancanSendMessagesTrue, if the user can send text messages, contacts, locations, and venues.booleancanSendOtherMessagesTrue, if the user can send animations, games, stickers, and dice and use inline bots.booleancanSendPollsTrue, if the user can send polls.static intCONSTRUCTORIdentifier uniquely determining type of the object.
-
Constructor Summary
Constructors Constructor Description ChatPermissions()Describes 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)Describes actions that a user is allowed to take in a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
canSendMessages
public boolean canSendMessages
True, if the user can send text messages, contacts, locations, and venues.
-
canSendMediaMessages
public boolean canSendMediaMessages
True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies canSendMessages permissions.
-
canSendPolls
public boolean canSendPolls
True, if the user can send polls. Implies canSendMessages permissions.
-
canSendOtherMessages
public boolean canSendOtherMessages
True, if the user can send animations, games, stickers, and dice and use inline bots. Implies canSendMessages permissions.
-
canAddWebPagePreviews
public boolean canAddWebPagePreviews
True, if the user may add a web page preview to their messages. Implies canSendMessages permissions.
-
canChangeInfo
public boolean canChangeInfo
True, if the user can change the chat title, photo, and other settings.
-
canInviteUsers
public boolean canInviteUsers
True, if the user can invite new users to the chat.
-
canPinMessages
public boolean canPinMessages
True, if the user can pin messages.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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)Describes actions that a user is allowed to take in a chat.- Parameters:
canSendMessages- True, if the user can send text messages, contacts, locations, and venues.canSendMediaMessages- True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies canSendMessages permissions.canSendPolls- True, if the user can send polls. Implies canSendMessages permissions.canSendOtherMessages- True, if the user can send animations, games, stickers, and dice and use inline bots. Implies canSendMessages permissions.canAddWebPagePreviews- True, if the user may add a web page preview to their messages. Implies canSendMessages permissions.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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-