Module tdlight.api

Class TdApi.ChatPermissions

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatPermissions
Enclosing class:
TdApi

public static final 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
    boolean
    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
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 canAddWebPagePreviews, boolean canChangeInfo, boolean canInviteUsers, boolean canPinMessages, boolean canManageTopics)
    Describes actions that a user is allowed to take in a chat.
    Describes actions that a user is allowed to take in a chat.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
    void
     

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • canSendBasicMessages

      public boolean canSendBasicMessages
      True, if the user can send text messages, contacts, invoices, locations, and venues.
    • canSendAudios

      public boolean canSendAudios
      True, if the user can send music files.
    • canSendDocuments

      public boolean canSendDocuments
      True, if the user can send documents.
    • canSendPhotos

      public boolean canSendPhotos
      True, if the user can send audio photos.
    • canSendVideos

      public boolean canSendVideos
      True, if the user can send audio videos.
    • canSendVideoNotes

      public boolean canSendVideoNotes
      True, if the user can send video notes.
    • canSendVoiceNotes

      public boolean canSendVoiceNotes
      True, if the user can send voice notes.
    • canSendPolls

      public boolean canSendPolls
      True, if the user can send polls.
    • canSendOtherMessages

      public boolean canSendOtherMessages
      True, if the user can send animations, games, stickers, and dice and use inline bots.
    • canAddWebPagePreviews

      public boolean canAddWebPagePreviews
      True, if the user may add a web page preview to their messages.
    • 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.
    • canManageTopics

      public boolean canManageTopics
      True, 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 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 - boolean True, if the user can send text messages, contacts, invoices, locations, and venues.
      canSendAudios - boolean True, if the user can send music files.
      canSendDocuments - boolean True, if the user can send documents.
      canSendPhotos - boolean True, if the user can send audio photos.
      canSendVideos - boolean True, if the user can send audio videos.
      canSendVideoNotes - boolean True, if the user can send video notes.
      canSendVoiceNotes - boolean True, if the user can send voice notes.
      canSendPolls - boolean True, if the user can send polls.
      canSendOtherMessages - boolean True, if the user can send animations, games, stickers, and dice and use inline bots.
      canAddWebPagePreviews - boolean True, if the user may add a web page preview to their messages.
      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

      public ChatPermissions(DataInput input) throws IOException
      Describes actions that a user is allowed to take in a chat.
      Throws:
      IOException
  • Method Details