Class TdApi.ToggleStoryIsPostedToChatPage

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ToggleStoryIsPostedToChatPage
Enclosing class:
TdApi

public static class TdApi.ToggleStoryIsPostedToChatPage extends TdApi.Function<TdApi.Ok>
Toggles whether a story is accessible after expiration. Can be called only if story.canToggleIsPostedToChatPage == true.

Returns Ok

  • Field Details

    • storyPosterChatId

      public long storyPosterChatId
      Identifier of the chat that posted the story.
    • storyId

      public int storyId
      Identifier of the story.
    • isPostedToChatPage

      public boolean isPostedToChatPage
      Pass true to make the story accessible after expiration; pass false to make it private.
    • CONSTRUCTOR

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

    • ToggleStoryIsPostedToChatPage

      public ToggleStoryIsPostedToChatPage()
      Default constructor for a function, which toggles whether a story is accessible after expiration. Can be called only if story.canToggleIsPostedToChatPage == true.

      Returns Ok

    • ToggleStoryIsPostedToChatPage

      public ToggleStoryIsPostedToChatPage(long storyPosterChatId, int storyId, boolean isPostedToChatPage)
      Creates a function, which toggles whether a story is accessible after expiration. Can be called only if story.canToggleIsPostedToChatPage == true.

      Returns Ok

      Parameters:
      storyPosterChatId - Identifier of the chat that posted the story.
      storyId - Identifier of the story.
      isPostedToChatPage - Pass true to make the story accessible after expiration; pass false to make it private.
  • 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.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR