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
Constructors -
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 UsergetUser()@Nullable BooleanisMember()voidsetCanAddWebPagePreviews(@Nullable Boolean canAddWebPagePreviews) voidsetCanBeEdited(@Nullable Boolean canBeEdited) voidsetCanChangeInfo(@Nullable Boolean canChangeInfo) voidsetCanDeleteMessages(@Nullable Boolean canDeleteMessages) voidsetCanEditMessages(@Nullable Boolean canEditMessages) voidsetCanInviteUsers(@Nullable Boolean canInviteUsers) voidsetCanPinMessages(@Nullable Boolean canPinMessages) voidsetCanPostMessages(@Nullable Boolean canPostMessages) voidsetCanPromoteMembers(@Nullable Boolean canPromoteMembers) voidsetCanRestrictMembers(@Nullable Boolean canRestrictMembers) voidsetCanSendMediaMessages(@Nullable Boolean canSendMediaMessages) voidsetCanSendMessages(@Nullable Boolean canSendMessages) voidsetCanSendOtherMessages(@Nullable Boolean canSendOtherMessages) voidsetCanSendPolls(@Nullable Boolean canSendPolls) voidsetCustomTitle(@Nullable String customTitle) voidvoidvoidsetUntilDate(@Nullable Integer untilDate) voidtoString()
-
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
-