Class 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 storySenderChatId, 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 dev.voroby.springframework.telegram.client.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • storySenderChatId

      public long storySenderChatId
      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 storySenderChatId, 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:
      storySenderChatId - 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