Module tdlight.api

Class TdApi.SetStoryReaction

Enclosing class:
TdApi

public static final class TdApi.SetStoryReaction extends TdApi.Function<TdApi.Ok>
Changes chosen reaction on a story.

Returns Ok

  • Field Details

    • storySenderChatId

      public long storySenderChatId
      The identifier of the sender of the story.
    • storyId

      public int storyId
      The identifier of the story.
    • reactionType

      public TdApi.ReactionType reactionType
      Type of the reaction to set; pass null to remove the reaction. `reactionTypeCustomEmoji` reactions can be used only by Telegram Premium users.
    • updateRecentReactions

      public boolean updateRecentReactions
      Pass true if the reaction needs to be added to recent reactions.
    • CONSTRUCTOR

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

    • SetStoryReaction

      public SetStoryReaction()
      Changes chosen reaction on a story.

      Returns Ok

    • SetStoryReaction

      public SetStoryReaction(long storySenderChatId, int storyId, TdApi.ReactionType reactionType, boolean updateRecentReactions)
      Changes chosen reaction on a story.

      Returns Ok

      Parameters:
      storySenderChatId - The identifier of the sender of the story.
      storyId - The identifier of the story.
      reactionType - Type of the reaction to set; pass null to remove the reaction. `reactionTypeCustomEmoji` reactions can be used only by Telegram Premium users.
      updateRecentReactions - Pass true if the reaction needs to be added to recent reactions.

      Returns Ok

    • SetStoryReaction

      public SetStoryReaction(DataInput input) throws IOException
      Changes chosen reaction on a story.

      Returns Ok

      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