Class TdApi.SetStoryReaction
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.SetStoryReaction
- Enclosing class:
- TdApi
Changes chosen reaction on a story that has already been sent.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Type of the reaction to set; pass null to remove the reaction.int
The identifier of the story.long
The identifier of the sender of the story.boolean
Pass true if the reaction needs to be added to recent reactions. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which changes chosen reaction on a story that has already been sent.SetStoryReaction
(long storySenderChatId, 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 TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
storySenderChatId
public long storySenderChatIdThe identifier of the sender of the story. -
storyId
public int storyIdThe 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
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 storySenderChatId, 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:
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.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-