public static class TdApi.MessageReaction extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isChosen
True, if the reaction is chosen by the current user.
|
TdApi.MessageSender[] |
recentSenderIds
Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats.
|
int |
totalCount
Number of times the reaction was added.
|
TdApi.ReactionType |
type
Type of the reaction.
|
TdApi.MessageSender |
usedSenderId
Identifier of the message sender used by the current user to add the reaction; may be null if unknown or the reaction isn't chosen.
|
| Constructor and Description |
|---|
MessageReaction()
Contains information about a reaction to a message.
|
MessageReaction(TdApi.ReactionType type,
int totalCount,
boolean isChosen,
TdApi.MessageSender usedSenderId,
TdApi.MessageSender[] recentSenderIds)
Contains information about a reaction to a message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.ReactionType type
public int totalCount
public boolean isChosen
public TdApi.MessageSender usedSenderId
public TdApi.MessageSender[] recentSenderIds
public static final int CONSTRUCTOR
public MessageReaction()
public MessageReaction(TdApi.ReactionType type, int totalCount, boolean isChosen, TdApi.MessageSender usedSenderId, TdApi.MessageSender[] recentSenderIds)
type - Type of the reaction.totalCount - Number of times the reaction was added.isChosen - True, if the reaction is chosen by the current user.usedSenderId - Identifier of the message sender used by the current user to add the reaction; may be null if unknown or the reaction isn't chosen.recentSenderIds - Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object