Class ChatPermissions

java.lang.Object
io.micronaut.chatbots.telegram.api.ChatPermissions

public class ChatPermissions extends Object
Describes actions that a non-administrator user is allowed to take in a chat.
See Also:
  • Constructor Details

    • ChatPermissions

      public ChatPermissions()
  • Method Details

    • getCanSendMessages

      @Nullable public @Nullable Boolean getCanSendMessages()
      Returns:
      True, if the user is allowed to send text messages, contacts, locations and venues.
    • setCanSendMessages

      public void setCanSendMessages(@Nullable @Nullable Boolean canSendMessages)
      Parameters:
      canSendMessages - True, if the user is allowed to send text messages, contacts, locations and venues.
    • getCanSendMediaMessages

      @Nullable public @Nullable Boolean getCanSendMediaMessages()
      Returns:
      True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages.
    • setCanSendMediaMessages

      public void setCanSendMediaMessages(@Nullable @Nullable Boolean canSendMediaMessages)
      Parameters:
      canSendMediaMessages - True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages.
    • getCanSendPolls

      @Nullable public @Nullable Boolean getCanSendPolls()
      Returns:
      True, if the user is allowed to send polls, implies can_send_messages.
    • setCanSendPolls

      public void setCanSendPolls(@Nullable @Nullable Boolean canSendPolls)
      Parameters:
      canSendPolls - True, if the user is allowed to send polls, implies can_send_messages.
    • getCanSendOtherMessages

      @Nullable public @Nullable Boolean getCanSendOtherMessages()
      Returns:
      True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages.
    • setCanSendOtherMessages

      public void setCanSendOtherMessages(@Nullable @Nullable Boolean canSendOtherMessages)
      Parameters:
      canSendOtherMessages - True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages.
    • getCanAddWebPagePreviews

      @Nullable public @Nullable Boolean getCanAddWebPagePreviews()
      Returns:
      True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages.
    • setCanAddWebPagePreviews

      public void setCanAddWebPagePreviews(@Nullable @Nullable Boolean canAddWebPagePreviews)
      Parameters:
      canAddWebPagePreviews - True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages.
    • getCanChangeInfo

      @Nullable public @Nullable Boolean getCanChangeInfo()
      Returns:
      True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
    • setCanChangeInfo

      public void setCanChangeInfo(@Nullable @Nullable Boolean canChangeInfo)
      Parameters:
      canChangeInfo - True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
    • getCanInviteUsers

      @Nullable public @Nullable Boolean getCanInviteUsers()
      Returns:
      True, if the user is allowed to invite new users to the chat.
    • setCanInviteUsers

      public void setCanInviteUsers(@Nullable @Nullable Boolean canInviteUsers)
      Parameters:
      canInviteUsers - True, if the user is allowed to invite new users to the chat.
    • getCanPinMessages

      @Nullable public @Nullable Boolean getCanPinMessages()
      Returns:
      True, if the user is allowed to pin messages. Ignored in public supergroups
    • setCanPinMessages

      public void setCanPinMessages(@Nullable @Nullable Boolean canPinMessages)
      Parameters:
      canPinMessages - True, if the user is allowed to pin messages. Ignored in public supergroups
    • toString

      public String toString()
      Overrides:
      toString in class Object