Class TdApi.ChatMemberStatusRestricted

  • Enclosing class:
    TdApi

    public static class TdApi.ChatMemberStatusRestricted
    extends TdApi.ChatMemberStatus
    The user is under certain restrictions in the chat. Not supported in basic groups and channels.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean canAddWebPagePreviews
      True, if the user may add a web page preview to his 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, and stickers and use inline bots.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean isMember
      True, if the user is a member of the chat.
      int restrictedUntilDate
      Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChatMemberStatusRestricted()
      Default constructor.
      ChatMemberStatusRestricted​(boolean isMember, int restrictedUntilDate, boolean canSendMessages, boolean canSendMediaMessages, boolean canSendOtherMessages, boolean canAddWebPagePreviews)
      Constructor for initialization of all fields.
    • Field Detail

      • isMember

        public boolean isMember
        True, if the user is a member of the chat.
      • restrictedUntilDate

        public int restrictedUntilDate
        Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever.
      • 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.
      • canSendOtherMessages

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

        public boolean canAddWebPagePreviews
        True, if the user may add a web page preview to his messages. Implies canSendMessages permissions.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChatMemberStatusRestricted

        public ChatMemberStatusRestricted()
        Default constructor.
      • ChatMemberStatusRestricted

        public ChatMemberStatusRestricted​(boolean isMember,
                                          int restrictedUntilDate,
                                          boolean canSendMessages,
                                          boolean canSendMediaMessages,
                                          boolean canSendOtherMessages,
                                          boolean canAddWebPagePreviews)
        Constructor for initialization of all fields.
        Parameters:
        isMember - True, if the user is a member of the chat.
        restrictedUntilDate - Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever.
        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.
        canSendOtherMessages - True, if the user can send animations, games, and stickers and use inline bots. Implies canSendMediaMessages permissions.
        canAddWebPagePreviews - True, if the user may add a web page preview to his messages. Implies canSendMessages permissions.