Module tdlight.api

Class TdApi.SetMessageReaction

Enclosing class:
TdApi

public static final class TdApi.SetMessageReaction extends TdApi.Function<TdApi.Ok>
Changes chosen reaction for a message. Returns Ok
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat to which the message belongs.
    • messageId

      public long messageId
      Identifier of the message.
    • reaction

      public String reaction
      Text representation of the new chosen reaction. Can be an empty string or the currently chosen reaction to remove the reaction.
    • isBig

      public boolean isBig
      True, if the reaction is added with a big animation.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetMessageReaction

      public SetMessageReaction()
      Changes chosen reaction for a message. Returns Ok
    • SetMessageReaction

      public SetMessageReaction(long chatId, long messageId, String reaction, boolean isBig)
      Changes chosen reaction for a message. Returns Ok
      Parameters:
      chatId - long Identifier of the chat to which the message belongs.
      messageId - long Identifier of the message.
      reaction - String Text representation of the new chosen reaction. Can be an empty string or the currently chosen reaction to remove the reaction.
      isBig - boolean True, if the reaction is added with a big animation.
    • SetMessageReaction

      public SetMessageReaction(DataInput input) throws IOException
      Changes chosen reaction for a message. Returns Ok
      Throws:
      IOException
  • Method Details