public static class TdApi.ChatPermissions extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
boolean |
canAddWebPagePreviews
True, if the user may add a web page preview to their messages.
|
boolean |
canChangeInfo
True, if the user can change the chat title, photo, and other settings.
|
boolean |
canInviteUsers
True, if the user can invite new users to the chat.
|
boolean |
canPinMessages
True, if the user can pin messages.
|
boolean |
canSendMediaMessages
True, if the user can send audio files, documents, photos, videos, video notes, and voice notes.
|
boolean |
canSendMessages
True, if the user can send text messages, contacts, locations, and venues.
|
boolean |
canSendOtherMessages
True, if the user can send animations, games, stickers, and dice and use inline bots.
|
boolean |
canSendPolls
True, if the user can send polls.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public boolean canSendMessages
public boolean canSendMediaMessages
public boolean canSendPolls
public boolean canSendOtherMessages
public boolean canAddWebPagePreviews
public boolean canChangeInfo
public boolean canInviteUsers
public boolean canPinMessages
public static final int CONSTRUCTOR
public ChatPermissions()
public ChatPermissions(boolean canSendMessages, boolean canSendMediaMessages, boolean canSendPolls, boolean canSendOtherMessages, boolean canAddWebPagePreviews, boolean canChangeInfo, boolean canInviteUsers, boolean canPinMessages)
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.public int getConstructor()
getConstructor
in class TdApi.Object