# Uses of Class
it.tdlight.jni.TdApi.MessageSender

## Uses of TdApi.MessageSender in it.tdlight.jni

Subclasses of TdApi.MessageSender in it.tdlight.jni
Modifier and Type
Class
Description
`static final class`
`TdApi.MessageSenderChat`
The message was sent on behalf of a chat.
`static final class`
`TdApi.MessageSenderUser`
The message was sent by a known user.
Fields in it.tdlight.jni declared as TdApi.MessageSender
Modifier and Type
Field
Description
`TdApi.MessageSender`
TdApi.StoryInteraction.`actorId`
Identifier of the user or chat that made the interaction.
`TdApi.MessageSender`
TdApi.UpdateMessageReaction.`actorId`
Identifier of the user or chat that changed reactions.
`TdApi.MessageSender`
TdApi.ForumTopicInfo.`creatorId`
Identifier of the creator of the topic.
`TdApi.MessageSender`
TdApi.MessagePremiumGiftCode.`creatorId`
Identifier of a chat or a user that created the gift code; may be null if unknown.
`TdApi.MessageSender`
TdApi.PremiumGiftCodeInfo.`creatorId`
Identifier of a chat or a user that created the gift code; may be null if unknown.
`TdApi.MessageSender`
TdApi.SetVideoChatDefaultParticipant.`defaultParticipantId`
Default group call participant identifier to join the video chats.
`TdApi.MessageSender`
TdApi.VideoChat.`defaultParticipantId`
Default group call participant identifier to join the video chat; may be null.
`TdApi.MessageSender`
TdApi.BanChatMember.`memberId`
Member identifier.
`TdApi.MessageSender`
TdApi.ChatEvent.`memberId`
Identifier of the user or chat who performed the action.
`TdApi.MessageSender`
TdApi.ChatEventMemberRestricted.`memberId`
Affected chat member identifier.
`TdApi.MessageSender`
TdApi.ChatMember.`memberId`
Identifier of the chat member.
`TdApi.MessageSender`
TdApi.GetChatMember.`memberId`
Member identifier.
`TdApi.MessageSender`
TdApi.SetChatMemberStatus.`memberId`
Member identifier.
`TdApi.MessageSender`
TdApi.Chat.`messageSenderId`
Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender.
`TdApi.MessageSender`
TdApi.SetChatMessageSender.`messageSenderId`
New message sender for the chat.
`TdApi.MessageSender`
TdApi.UpdateChatMessageSender.`messageSenderId`
New value of messageSenderId; may be null if the user can't change message sender.
`TdApi.MessageSender`
TdApi.ChatEventVideoChatParticipantIsMutedToggled.`participantId`
Identifier of the affected group call participant.
`TdApi.MessageSender`
TdApi.ChatEventVideoChatParticipantVolumeLevelChanged.`participantId`
Identifier of the affected group call participant.
`TdApi.MessageSender`
TdApi.GroupCallParticipant.`participantId`
Identifier of the group call participant.
`TdApi.MessageSender`
TdApi.GroupCallRecentSpeaker.`participantId`
Group call participant identifier.
`TdApi.MessageSender`
TdApi.JoinGroupCall.`participantId`
Identifier of a group call participant, which will be used to join the call; pass null to join as self; video chats only.
`TdApi.MessageSender`
TdApi.SetGroupCallParticipantVolumeLevel.`participantId`
Participant identifier.
`TdApi.MessageSender`
TdApi.ToggleGroupCallParticipantIsHandRaised.`participantId`
Participant identifier.
`TdApi.MessageSender`
TdApi.ToggleGroupCallParticipantIsMuted.`participantId`
Participant identifier.
`TdApi.MessageSender[]`
TdApi.MessageReplyInfo.`recentReplierIds`
Identifiers of at most 3 recent repliers to the message; available in channels with a discussion supergroup.
`TdApi.MessageSender[]`
TdApi.MessageReaction.`recentSenderIds`
Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats.
`TdApi.MessageSender[]`
TdApi.Poll.`recentVoterIds`
Identifiers of recent voters, if the poll is non-anonymous.
`TdApi.MessageSender`
TdApi.ChatMessageSender.`sender`
The message sender.
`TdApi.MessageSender`
TdApi.AddedReaction.`senderId`
Identifier of the chat member, applied the reaction.
`TdApi.MessageSender`
TdApi.AddLocalMessage.`senderId`
Identifier of the sender of the message.
`TdApi.MessageSender`
TdApi.DeleteChatMessagesBySender.`senderId`
Identifier of the sender of messages to delete.
`TdApi.MessageSender`
TdApi.ForwardSource.`senderId`
Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages.
`TdApi.MessageSender`
TdApi.Message.`senderId`
Identifier of the sender of the message.
`TdApi.MessageSender`
TdApi.NotificationTypeNewPushMessage.`senderId`
Identifier of the sender of the message.
`TdApi.MessageSender`
TdApi.ReportMessageReactions.`senderId`
Identifier of the sender, which added the reaction.
`TdApi.MessageSender`
TdApi.SearchChatMessages.`senderId`
Identifier of the sender of messages to search for; pass null to search for messages from any sender.
`TdApi.MessageSender`
TdApi.SetMessageSenderBlockList.`senderId`
Identifier of a message sender to block/unblock.
`TdApi.MessageSender`
TdApi.Story.`senderId`
Identifier of the sender of the story; may be null if the story is posted on behalf of the senderChatId.
`TdApi.MessageSender`
TdApi.UnreadReaction.`senderId`
Identifier of the sender, added the reaction.
`TdApi.MessageSender`
TdApi.UpdateChatAction.`senderId`
Identifier of a message sender performing the action.
`TdApi.MessageSender[]`
TdApi.MessageSenders.`senders`
List of message senders.
`TdApi.MessageSender`
TdApi.MessageProximityAlertTriggered.`travelerId`
The identifier of a user or chat that triggered the proximity alert.
`TdApi.MessageSender`
TdApi.MessageReaction.`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.
`TdApi.MessageSender`
TdApi.UpdatePollAnswer.`voterId`
Identifier of the message sender that changed the answer to the poll.
`TdApi.MessageSender`
TdApi.MessageProximityAlertTriggered.`watcherId`
The identifier of a user or chat that subscribed for the proximity alert.
Constructors in it.tdlight.jni with parameters of type TdApi.MessageSender
Modifier
Constructor
Description
``
`AddedReaction(TdApi.ReactionType type, TdApi.MessageSender senderId, boolean isOutgoing, int date)`
Represents a reaction applied to a message.
``
`AddLocalMessage(long chatId, TdApi.MessageSender senderId, TdApi.InputMessageReplyTo replyTo, boolean disableNotification, TdApi.InputMessageContent inputMessageContent)`
Adds a local message to a chat.
``
`BanChatMember(long chatId, TdApi.MessageSender memberId, int bannedUntilDate, boolean revokeMessages)`
Bans a member in a chat; requires canRestrictMembers administrator right.
``
`Chat(long id, TdApi.ChatType type, String title, TdApi.ChatPhotoInfo photo, int accentColorId, long backgroundCustomEmojiId, int profileAccentColorId, long profileBackgroundCustomEmojiId, TdApi.ChatPermissions permissions, TdApi.Message lastMessage, TdApi.ChatPosition[] positions, TdApi.ChatList[] chatLists, TdApi.MessageSender messageSenderId, TdApi.BlockList blockList, boolean hasProtectedContent, boolean isTranslatable, boolean isMarkedAsUnread, boolean viewAsTopics, boolean hasScheduledMessages, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeReported, boolean defaultDisableNotification, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.ChatAvailableReactions availableReactions, int messageAutoDeleteTime, TdApi.EmojiStatus emojiStatus, TdApi.ChatBackground background, String themeName, TdApi.ChatActionBar actionBar, TdApi.VideoChat videoChat, TdApi.ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, TdApi.DraftMessage draftMessage, String clientData)`
A chat.
``
`ChatEvent(long id, int date, TdApi.MessageSender memberId, TdApi.ChatEventAction action)`
Represents a chat event.
``
`ChatEventMemberRestricted(TdApi.MessageSender memberId, TdApi.ChatMemberStatus oldStatus, TdApi.ChatMemberStatus newStatus)`
A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed.
``
`ChatEventVideoChatParticipantIsMutedToggled(TdApi.MessageSender participantId, boolean isMuted)`
A video chat participant was muted or unmuted.
``
`ChatEventVideoChatParticipantVolumeLevelChanged(TdApi.MessageSender participantId, int volumeLevel)`
A video chat participant volume level was changed.
``
`ChatMember(TdApi.MessageSender memberId, long inviterUserId, int joinedChatDate, TdApi.ChatMemberStatus status)`
Describes a user or a chat as a member of another chat.
``
`ChatMessageSender(TdApi.MessageSender sender, boolean needsPremium)`
Represents a message sender, which can be used to send messages in a chat.
``
`DeleteChatMessagesBySender(long chatId, TdApi.MessageSender senderId)`
Deletes all messages sent by the specified message sender in a chat.
``
`ForumTopicInfo(long messageThreadId, String name, TdApi.ForumTopicIcon icon, int creationDate, TdApi.MessageSender creatorId, boolean isGeneral, boolean isOutgoing, boolean isClosed, boolean isHidden)`
Contains basic information about a forum topic.
``
`ForwardSource(long chatId, long messageId, TdApi.MessageSender senderId, String senderName, int date, boolean isOutgoing)`
Contains information about the last message from which a new message was forwarded last time.
``
`GetChatMember(long chatId, TdApi.MessageSender memberId)`
Returns information about a single member of a chat.
``
`GroupCallParticipant(TdApi.MessageSender participantId, int audioSourceId, int screenSharingAudioSourceId, TdApi.GroupCallParticipantVideoInfo videoInfo, TdApi.GroupCallParticipantVideoInfo screenSharingVideoInfo, String bio, boolean isCurrentUser, boolean isSpeaking, boolean isHandRaised, boolean canBeMutedForAllUsers, boolean canBeUnmutedForAllUsers, boolean canBeMutedForCurrentUser, boolean canBeUnmutedForCurrentUser, boolean isMutedForAllUsers, boolean isMutedForCurrentUser, boolean canUnmuteSelf, int volumeLevel, String order)`
Represents a group call participant.
``
`GroupCallRecentSpeaker(TdApi.MessageSender participantId, boolean isSpeaking)`
Describes a recently speaking participant in a group call.
``
`JoinGroupCall(int groupCallId, TdApi.MessageSender participantId, int audioSourceId, String payload, boolean isMuted, boolean isMyVideoEnabled, String inviteHash)`
Joins an active group call.
``
`Message(long id, TdApi.MessageSender senderId, long chatId, TdApi.MessageSendingState sendingState, TdApi.MessageSchedulingState schedulingState, boolean isOutgoing, boolean isPinned, boolean canBeEdited, boolean canBeForwarded, boolean canBeRepliedInAnotherChat, boolean canBeSaved, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canGetAddedReactions, boolean canGetStatistics, boolean canGetMessageThread, boolean canGetReadDate, boolean canGetViewers, boolean canGetMediaTimestampLinks, boolean canReportReactions, boolean hasTimestampedMedia, boolean isChannelPost, boolean isTopicMessage, boolean containsUnreadMention, int date, int editDate, TdApi.MessageForwardInfo forwardInfo, TdApi.MessageImportInfo importInfo, TdApi.MessageInteractionInfo interactionInfo, TdApi.UnreadReaction[] unreadReactions, TdApi.MessageReplyTo replyTo, long messageThreadId, long savedMessagesTopicId, TdApi.MessageSelfDestructType selfDestructType, double selfDestructIn, double autoDeleteIn, long viaBotUserId, int senderBoostCount, String authorSignature, long mediaAlbumId, String restrictionReason, TdApi.MessageContent content, TdApi.ReplyMarkup replyMarkup)`
Describes a message.
``
`MessagePremiumGiftCode(TdApi.MessageSender creatorId, boolean isFromGiveaway, boolean isUnclaimed, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, int monthCount, TdApi.Sticker sticker, String code)`
A Telegram Premium gift code was created for the user.
``
`MessageProximityAlertTriggered(TdApi.MessageSender travelerId, TdApi.MessageSender watcherId, int distance)`
A user in the chat came within proximity alert range.
``
`MessageReaction(TdApi.ReactionType type, int totalCount, boolean isChosen, TdApi.MessageSender usedSenderId, TdApi.MessageSender[] recentSenderIds)`
Contains information about a reaction to a message.
``
`MessageReplyInfo(int replyCount, TdApi.MessageSender[] recentReplierIds, long lastReadInboxMessageId, long lastReadOutboxMessageId, long lastMessageId)`
Contains information about replies to a message.
``
`MessageSenders(int totalCount, TdApi.MessageSender[] senders)`
Represents a list of message senders.
``
`NotificationTypeNewPushMessage(long messageId, TdApi.MessageSender senderId, String senderName, boolean isOutgoing, TdApi.PushMessageContent content)`
New message was received through a push notification.
``
`Poll(long id, String question, TdApi.PollOption[] options, int totalVoterCount, TdApi.MessageSender[] recentVoterIds, boolean isAnonymous, TdApi.PollType type, int openPeriod, int closeDate, boolean isClosed)`
Describes a poll.
``
`PremiumGiftCodeInfo(TdApi.MessageSender creatorId, int creationDate, boolean isFromGiveaway, long giveawayMessageId, int monthCount, long userId, int useDate)`
Contains information about a Telegram Premium gift code.
``
`ReportMessageReactions(long chatId, long messageId, TdApi.MessageSender senderId)`
Reports reactions set on a message to the Telegram moderators.
``
`SearchChatMessages(long chatId, String query, TdApi.MessageSender senderId, long fromMessageId, int offset, int limit, TdApi.SearchMessagesFilter filter, long messageThreadId, long savedMessagesTopicId)`
Searches for messages with given words in the chat.
``
`SetChatMemberStatus(long chatId, TdApi.MessageSender memberId, TdApi.ChatMemberStatus status)`
Changes the status of a chat member; requires canInviteUsers member right to add a chat member, canPromoteMembers administrator right to change administrator rights of the member, and canRestrictMembers administrator right to change restrictions of a user.
``
`SetChatMessageSender(long chatId, TdApi.MessageSender messageSenderId)`
Selects a message sender to send messages in a chat.
``
`SetGroupCallParticipantVolumeLevel(int groupCallId, TdApi.MessageSender participantId, int volumeLevel)`
Changes volume level of a participant of an active group call.
``
`SetMessageSenderBlockList(TdApi.MessageSender senderId, TdApi.BlockList blockList)`
Changes the block list of a message sender.
``
`SetVideoChatDefaultParticipant(long chatId, TdApi.MessageSender defaultParticipantId)`
Changes default participant identifier, on whose behalf a video chat in the chat will be joined.
``
`Story(int id, long senderChatId, TdApi.MessageSender senderId, int date, boolean isBeingSent, boolean isBeingEdited, boolean isEdited, boolean isPinned, boolean isVisibleOnlyForSelf, boolean canBeDeleted, boolean canBeEdited, boolean canBeForwarded, boolean canBeReplied, boolean canToggleIsPinned, boolean canGetStatistics, boolean canGetInteractions, boolean hasExpiredViewers, TdApi.StoryRepostInfo repostInfo, TdApi.StoryInteractionInfo interactionInfo, TdApi.ReactionType chosenReactionType, TdApi.StoryPrivacySettings privacySettings, TdApi.StoryContent content, TdApi.StoryArea[] areas, TdApi.FormattedText caption)`
Represents a story.
``
`StoryInteraction(TdApi.MessageSender actorId, int interactionDate, TdApi.BlockList blockList, TdApi.StoryInteractionType type)`
Represents interaction with a story.
``
`ToggleGroupCallParticipantIsHandRaised(int groupCallId, TdApi.MessageSender participantId, boolean isHandRaised)`
Toggles whether a group call participant hand is rased.
``
`ToggleGroupCallParticipantIsMuted(int groupCallId, TdApi.MessageSender participantId, boolean isMuted)`
Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves.
``
`UnreadReaction(TdApi.ReactionType type, TdApi.MessageSender senderId, boolean isBig)`
Contains information about an unread reaction to a message.
``
`UpdateChatAction(long chatId, long messageThreadId, TdApi.MessageSender senderId, TdApi.ChatAction action)`
A message sender activity in the chat has changed.
``
`UpdateChatMessageSender(long chatId, TdApi.MessageSender messageSenderId)`
The message sender that is selected to send messages in a chat has changed.
``
`UpdateMessageReaction(long chatId, long messageId, TdApi.MessageSender actorId, int date, TdApi.ReactionType[] oldReactionTypes, TdApi.ReactionType[] newReactionTypes)`
User changed its reactions on a message with public reactions; for bots only.
``
`UpdatePollAnswer(long pollId, TdApi.MessageSender voterId, int[] optionIds)`
A user changed the answer to a poll; for bots only.
``
`VideoChat(int groupCallId, boolean hasParticipants, TdApi.MessageSender defaultParticipantId)`
Describes a video chat.