Class TdApi.EditStoryCover

Enclosing class:
TdApi

public static class TdApi.EditStoryCover extends TdApi.Function<TdApi.Ok>
Changes cover of a video story. Can be called only if story.canBeEdited == true and the story isn't being edited now.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    double
    New timestamp of the frame, which will be used as video thumbnail.
    int
    Identifier of the story to edit.
    long
    Identifier of the chat that posted the story.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which changes cover of a video story.
    EditStoryCover(long storySenderChatId, int storyId, double coverFrameTimestamp)
    Creates a function, which changes cover of a video story.
  • 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 to edit.
    • coverFrameTimestamp

      public double coverFrameTimestamp
      New timestamp of the frame, which will be used as video thumbnail.
    • CONSTRUCTOR

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

    • EditStoryCover

      public EditStoryCover()
      Default constructor for a function, which changes cover of a video story. Can be called only if story.canBeEdited == true and the story isn't being edited now.

      Returns Ok

    • EditStoryCover

      public EditStoryCover(long storySenderChatId, int storyId, double coverFrameTimestamp)
      Creates a function, which changes cover of a video story. Can be called only if story.canBeEdited == true and the story isn't being edited now.

      Returns Ok

      Parameters:
      storySenderChatId - Identifier of the chat that posted the story.
      storyId - Identifier of the story to edit.
      coverFrameTimestamp - New timestamp of the frame, which will be used as video thumbnail.
  • 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