Class TdApi.SetChatNotificationSettings

  • Enclosing class:
    TdApi

    public static class TdApi.SetChatNotificationSettings
    extends TdApi.Function
    Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed.

    Returns Ok

    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • notificationSettings

        public TdApi.ChatNotificationSettings notificationSettings
        New notification settings for the chat. If the chat is muted for more than 1 week, it is considered to be muted forever.
      • CONSTRUCTOR

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

      • SetChatNotificationSettings

        public SetChatNotificationSettings()
        Default constructor for a function, which changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed.

        Returns Ok

      • SetChatNotificationSettings

        public SetChatNotificationSettings​(long chatId,
                                           TdApi.ChatNotificationSettings notificationSettings)
        Creates a function, which changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed.

        Returns Ok

        Parameters:
        chatId - Chat identifier.
        notificationSettings - New notification settings for the chat. If the chat is muted for more than 1 week, it is considered to be muted forever.