Class TdApi.SetStoryPrivacySettings

Enclosing class:
TdApi

public static class TdApi.SetStoryPrivacySettings extends TdApi.Function<TdApi.Ok>
Changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and if story.canBeEdited == true.

Returns Ok

  • Field Details

    • storyId

      public int storyId
      Identifier of the story.
    • privacySettings

      public TdApi.StoryPrivacySettings privacySettings
      The new privacy settigs for the story.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SetStoryPrivacySettings

      public SetStoryPrivacySettings()
      Default constructor for a function, which changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and if story.canBeEdited == true.

      Returns Ok

    • SetStoryPrivacySettings

      public SetStoryPrivacySettings(int storyId, TdApi.StoryPrivacySettings privacySettings)
      Creates a function, which changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and if story.canBeEdited == true.

      Returns Ok

      Parameters:
      storyId - Identifier of the story.
      privacySettings - The new privacy settigs for the story.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR