Class EditChatInviteLink


public class EditChatInviteLink extends AbstractBaseRequest<EditChatInviteLink, ChatInviteLink>
EditChatInviteLink class
Since:
3 March 2025
See Also:
  • Constructor Details

    • EditChatInviteLink

      public EditChatInviteLink(Object chat_id, String invite_link, Api api)
      Required
      Parameters:
      chat_id - chat id
      invite_link - invite link
      api - api
  • Method Details

    • name

      public EditChatInviteLink name(String name)
      Optional
      Parameters:
      name - Invite link name; 0-32 characters
      Returns:
      EditChatInviteLink
    • expireDate

      public EditChatInviteLink expireDate(int expire_date)
      optional
      Parameters:
      expire_date - Point in time (Unix timestamp) when the link will expire
      Returns:
      EditChatInviteLink
    • memberLimit

      public EditChatInviteLink memberLimit(int member_limit)
      Optional
      Parameters:
      member_limit - The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
      Returns:
      EditChatInviteLink
    • createsJoinRequest

      public EditChatInviteLink createsJoinRequest(boolean creates_join_request)
      Optional
      Parameters:
      creates_join_request - True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified
      Returns:
      EditChatInviteLink