Class ChatPermissions
java.lang.Object
io.micronaut.chatbots.telegram.api.ChatPermissions
Describes actions that a non-administrator user is allowed to take in 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 BooleanvoidsetCanAddWebPagePreviews(@Nullable Boolean canAddWebPagePreviews) voidsetCanChangeInfo(@Nullable Boolean canChangeInfo) voidsetCanInviteUsers(@Nullable Boolean canInviteUsers) voidsetCanPinMessages(@Nullable Boolean canPinMessages) voidsetCanSendMediaMessages(@Nullable Boolean canSendMediaMessages) voidsetCanSendMessages(@Nullable Boolean canSendMessages) voidsetCanSendOtherMessages(@Nullable Boolean canSendOtherMessages) voidsetCanSendPolls(@Nullable Boolean canSendPolls) toString()
-
Constructor Details
-
ChatPermissions
public ChatPermissions()
-
-
Method Details
-
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, implies can_send_messages.
-
setCanSendMediaMessages
- Parameters:
canSendMediaMessages- True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages.
-
getCanSendPolls
- Returns:
- True, if the user is allowed to send polls, implies can_send_messages.
-
setCanSendPolls
- Parameters:
canSendPolls- True, if the user is allowed to send polls, implies can_send_messages.
-
getCanSendOtherMessages
- Returns:
- True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages.
-
setCanSendOtherMessages
- Parameters:
canSendOtherMessages- True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages.
-
getCanAddWebPagePreviews
- Returns:
- True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages.
-
setCanAddWebPagePreviews
- Parameters:
canAddWebPagePreviews- True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages.
-
getCanChangeInfo
- Returns:
- True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
-
setCanChangeInfo
- Parameters:
canChangeInfo- True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
-
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. Ignored in public supergroups
-
setCanPinMessages
- Parameters:
canPinMessages- True, if the user is allowed to pin messages. Ignored in public supergroups
-
toString
-