Class ChatMember
java.lang.Object
io.micronaut.chatbots.telegram.api.ChatMember
This object contains information about one member of a chat.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable String
@Nullable Integer
@NonNull User
getUser()
@Nullable Boolean
isMember()
void
setCanAddWebPagePreviews
(@Nullable Boolean canAddWebPagePreviews) void
setCanBeEdited
(@Nullable Boolean canBeEdited) void
setCanChangeInfo
(@Nullable Boolean canChangeInfo) void
setCanDeleteMessages
(@Nullable Boolean canDeleteMessages) void
setCanEditMessages
(@Nullable Boolean canEditMessages) void
setCanInviteUsers
(@Nullable Boolean canInviteUsers) void
setCanPinMessages
(@Nullable Boolean canPinMessages) void
setCanPostMessages
(@Nullable Boolean canPostMessages) void
setCanPromoteMembers
(@Nullable Boolean canPromoteMembers) void
setCanRestrictMembers
(@Nullable Boolean canRestrictMembers) void
setCanSendMediaMessages
(@Nullable Boolean canSendMediaMessages) void
setCanSendMessages
(@Nullable Boolean canSendMessages) void
setCanSendOtherMessages
(@Nullable Boolean canSendOtherMessages) void
setCanSendPolls
(@Nullable Boolean canSendPolls) void
setCustomTitle
(@Nullable String customTitle) void
void
void
setUntilDate
(@Nullable Integer untilDate) void
toString()
-
Constructor Details
-
ChatMember
public ChatMember()
-
-
Method Details
-
getUser
- Returns:
- Information about the user.
-
setUser
- Parameters:
user
- Information about the user.
-
getStatus
- Returns:
- The member's status in the chat.
-
setStatus
- Parameters:
status
- The member's status in the chat.
-
getCustomTitle
- Returns:
- Custom title for this user.
-
setCustomTitle
- Parameters:
customTitle
- Custom title for this user.
-
getUntilDate
- Returns:
- Date when restrictions will be lifted for this user
-
setUntilDate
- Parameters:
untilDate
- Date when restrictions will be lifted for this user
-
getCanBeEdited
- Returns:
- True, if the bot is allowed to edit administrator privileges of that user.
-
setCanBeEdited
- Parameters:
canBeEdited
- True, if the bot is allowed to edit administrator privileges of that user.
-
getCanPostMessages
- Returns:
- True, if the administrator can post in the channel; channels only.
-
setCanPostMessages
- Parameters:
canPostMessages
- True, if the administrator can post in the channel; channels only.
-
getCanEditMessages
- Returns:
- True, if the administrator can edit messages of other users and can pin messages; channels only.
-
setCanEditMessages
- Parameters:
canEditMessages
- True, if the administrator can edit messages of other users and can pin messages; channels only.
-
getCanDeleteMessages
- Returns:
- True, if the administrator can delete messages of other users.
-
setCanDeleteMessages
- Parameters:
canDeleteMessages
- True, if the administrator can delete messages of other users.
-
getCanRestrictMembers
- Returns:
- True, if the administrator can restrict, ban or unban chat members.
-
setCanRestrictMembers
- Parameters:
canRestrictMembers
- True, if the administrator can restrict, ban or unban chat members.
-
getCanPromoteMembers
- Returns:
- True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly
-
setCanPromoteMembers
- Parameters:
canPromoteMembers
- True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly
-
getCanChangeInfo
- Returns:
- True, if the user is allowed to change the chat title, photo and other settings.
-
setCanChangeInfo
- Parameters:
canChangeInfo
- True, if the user is allowed to change the chat title, photo and other settings.
-
getCanInviteUsers
- Returns:
- True, if the user is allowed to invite new users to the chat.
-
setCanInviteUsers
- Parameters:
canInviteUsers
- True, if the user is allowed to invite new users to the chat.
-
getCanPinMessages
- Returns:
- True, if the user is allowed to pin messages; groups and supergroups only.
-
setCanPinMessages
- Parameters:
canPinMessages
- True, if the user is allowed to pin messages; groups and supergroups only.
-
isMember
- Returns:
- True, if the user is a member of the chat at the moment of the request.
-
setMember
- Parameters:
member
- True, if the user is a member of the chat at the moment of the request.
-
getCanSendMessages
- Returns:
- True, if the user is allowed to send text messages, contacts, locations and venues.
-
setCanSendMessages
- Parameters:
canSendMessages
- True, if the user is allowed to send text messages, contacts, locations and venues.
-
getCanSendMediaMessages
- Returns:
- True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.
-
setCanSendMediaMessages
- Parameters:
canSendMediaMessages
- True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.
-
getCanSendPolls
- Returns:
- True, if the user is allowed to send polls.
-
setCanSendPolls
- Parameters:
canSendPolls
- True, if the user is allowed to send polls.
-
getCanSendOtherMessages
- Returns:
- True, if the user is allowed to send animations, games, stickers and use inline bots.
-
setCanSendOtherMessages
- Parameters:
canSendOtherMessages
- True, if the user is allowed to send animations, games, stickers and use inline bots.
-
getCanAddWebPagePreviews
- Returns:
- True, if the user is allowed to add web page previews to their messages.
-
setCanAddWebPagePreviews
- Parameters:
canAddWebPagePreviews
- True, if the user is allowed to add web page previews to their messages.
-
toString
-