public static class TdApi.ChatPermissions extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
canAddLinkPreviews
True, if the user may add a link preview to their messages.
|
boolean |
canChangeInfo
True, if the user can change the chat title, photo, and other settings.
|
boolean |
canCreateTopics
True, if the user can create topics.
|
boolean |
canInviteUsers
True, if the user can invite new users to the chat.
|
boolean |
canPinMessages
True, if the user can pin messages.
|
boolean |
canSendAudios
True, if the user can send music files.
|
boolean |
canSendBasicMessages
True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues.
|
boolean |
canSendDocuments
True, if the user can send documents.
|
boolean |
canSendOtherMessages
True, if the user can send animations, games, stickers, and dice and use inline bots.
|
boolean |
canSendPhotos
True, if the user can send photos.
|
boolean |
canSendPolls
True, if the user can send polls.
|
boolean |
canSendVideoNotes
True, if the user can send video notes.
|
boolean |
canSendVideos
True, if the user can send videos.
|
boolean |
canSendVoiceNotes
True, if the user can send voice notes.
|
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 canSendBasicMessages,
boolean canSendAudios,
boolean canSendDocuments,
boolean canSendPhotos,
boolean canSendVideos,
boolean canSendVideoNotes,
boolean canSendVoiceNotes,
boolean canSendPolls,
boolean canSendOtherMessages,
boolean canAddLinkPreviews,
boolean canChangeInfo,
boolean canInviteUsers,
boolean canPinMessages,
boolean canCreateTopics)
Describes actions that a user is allowed to take in a chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean canSendBasicMessages
public boolean canSendAudios
public boolean canSendDocuments
public boolean canSendPhotos
public boolean canSendVideos
public boolean canSendVideoNotes
public boolean canSendVoiceNotes
public boolean canSendPolls
public boolean canSendOtherMessages
public boolean canAddLinkPreviews
public boolean canChangeInfo
public boolean canInviteUsers
public boolean canPinMessages
public boolean canCreateTopics
public static final int CONSTRUCTOR
public ChatPermissions()
public ChatPermissions(boolean canSendBasicMessages,
boolean canSendAudios,
boolean canSendDocuments,
boolean canSendPhotos,
boolean canSendVideos,
boolean canSendVideoNotes,
boolean canSendVoiceNotes,
boolean canSendPolls,
boolean canSendOtherMessages,
boolean canAddLinkPreviews,
boolean canChangeInfo,
boolean canInviteUsers,
boolean canPinMessages,
boolean canCreateTopics)
canSendBasicMessages - True, if the user can send text messages, contacts, giveaways, giveaway winners, 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 photos.canSendVideos - True, if the user can send 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.canAddLinkPreviews - True, if the user may add a link 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.canCreateTopics - True, if the user can create topics.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object