- 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
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat to which the message belongs.static final intbooleanPass true if the reaction is added with a big animation.longIdentifier of the message.Type of the reaction to add.booleanPass true if the reaction needs to be added to recent reactions. -
Constructor Summary
ConstructorsConstructorDescriptionAdds 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
toStringMethods 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:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-