Package org.drinkless.tdlib
Class TdApi.SetStoryReaction
- Enclosing class:
- TdApi
Changes chosen reaction on a story that has already been sent.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Type of the reaction to set; pass null to remove the reaction.intThe identifier of the story.longThe identifier of the poster of the story.booleanPass true if the reaction needs to be added to recent reactions. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which changes chosen reaction on a story that has already been sent.SetStoryReaction(long storyPosterChatId, int storyId, TdApi.ReactionType reactionType, boolean updateRecentReactions) Creates a function, which changes chosen reaction on a story that has already been sent. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
storyPosterChatId
public long storyPosterChatIdThe identifier of the poster of the story. -
storyId
public int storyIdThe identifier of the story. -
reactionType
Type of the reaction to set; pass null to remove the reaction. Custom emoji reactions can be used only by Telegram Premium users. Paid reactions can't be set. -
updateRecentReactions
public boolean updateRecentReactionsPass true if the reaction needs to be added to recent reactions. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetStoryReaction
public SetStoryReaction()Default constructor for a function, which changes chosen reaction on a story that has already been sent.Returns
Ok -
SetStoryReaction
public SetStoryReaction(long storyPosterChatId, int storyId, TdApi.ReactionType reactionType, boolean updateRecentReactions) Creates a function, which changes chosen reaction on a story that has already been sent.Returns
Ok- Parameters:
storyPosterChatId- The identifier of the poster of the story.storyId- The identifier of the story.reactionType- Type of the reaction to set; pass null to remove the reaction. Custom emoji reactions can be used only by Telegram Premium users. Paid reactions can't be set.updateRecentReactions- Pass true if the reaction needs to be added to recent reactions.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-