Module tdlight.api

Class TdApi.SendStory

Enclosing class:
TdApi

public static final class TdApi.SendStory extends TdApi.Function<TdApi.Story>
Sends a new story. Returns a temporary story.

Returns Story

  • Field Details

    • content

      public TdApi.InputStoryContent content
      Content of the story.
    • areas

      public TdApi.InputStoryAreas areas
      Clickable rectangle areas to be shown on the story media; pass null if none.
    • caption

      public TdApi.FormattedText caption
      Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters.
    • privacySettings

      public TdApi.StoryPrivacySettings privacySettings
      The privacy settings for the story.
    • activePeriod

      public int activePeriod
      Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise.
    • isPinned

      public boolean isPinned
      Pass true to keep the story accessible after expiration.
    • protectContent

      public boolean protectContent
      Pass true if the content of the story must be protected from forwarding and screenshotting.
    • CONSTRUCTOR

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

    • SendStory

      public SendStory()
      Sends a new story. Returns a temporary story.

      Returns Story

    • SendStory

      public SendStory(TdApi.InputStoryContent content, TdApi.InputStoryAreas areas, TdApi.FormattedText caption, TdApi.StoryPrivacySettings privacySettings, int activePeriod, boolean isPinned, boolean protectContent)
      Sends a new story. Returns a temporary story.

      Returns Story

      Parameters:
      content - Content of the story.
      areas - Clickable rectangle areas to be shown on the story media; pass null if none.
      caption - Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters.
      privacySettings - The privacy settings for the story.
      activePeriod - Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise.
      isPinned - Pass true to keep the story accessible after expiration.
      protectContent - Pass true if the content of the story must be protected from forwarding and screenshotting.

      Returns Story

    • SendStory

      public SendStory(DataInput input) throws IOException
      Sends a new story. Returns a temporary story.

      Returns Story

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object