- Enclosing class:
- TdApi
Adds a reaction to a message. Use
getMessageAvailableReactions to receive
the list of available reactions for the message.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat to which the message belongs.static final int
boolean
Pass true if the reaction is added with a big animation.long
Identifier of the message.Type of the reaction to add.boolean
Pass true if the reaction needs to be added to recent reactions. -
Constructor Summary
ConstructorDescriptionAdds a reaction to a message.AddMessageReaction
(long chatId, long messageId, TdApi.ReactionType reactionType, boolean isBig, boolean updateRecentReactions) Adds a reaction to a message.AddMessageReaction
(DataInput input) Adds a reaction to a message. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which the message belongs. -
messageId
public long messageIdIdentifier of the message. -
reactionType
Type of the reaction to add. -
isBig
public boolean isBigPass true if the reaction is added with a big animation. -
updateRecentReactions
public boolean updateRecentReactionsPass true if the reaction needs to be added to recent reactions. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
AddMessageReaction
public AddMessageReaction()Adds a reaction to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message. ReturnsOk
-
AddMessageReaction
public AddMessageReaction(long chatId, long messageId, TdApi.ReactionType reactionType, boolean isBig, boolean updateRecentReactions) Adds a reaction to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message. ReturnsOk
- Parameters:
chatId
- long Identifier of the chat to which the message belongs.messageId
- long Identifier of the message.reactionType
- ReactionType Type of the reaction to add.isBig
- boolean Pass true if the reaction is added with a big animation.updateRecentReactions
- boolean Pass true if the reaction needs to be added to recent reactions.
-
AddMessageReaction
Adds a reaction to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message. ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-