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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    Pass true to make the story accessible after expiration; pass false to make it private.
    int
    Identifier of the story.
    long
    Identifier of the chat that posted the story.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which toggles whether a story is accessible after expiration.
    ToggleStoryIsPostedToChatPage(long storyPosterChatId, int storyId, boolean isPostedToChatPage)
    Creates a function, which toggles whether a story is accessible after expiration.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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.Object
      Returns:
      this.CONSTRUCTOR