Class CreateChatInviteLink

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<CreateChatInviteLink, ChatInviteLink>
io.github.natanimn.telebof.requests.create.CreateChatInviteLink

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

    • CreateChatInviteLink

      public CreateChatInviteLink(Object chat_id, Api api)
      Required
      Parameters:
      chat_id - chat id
      api - api
  • Method Details

    • name

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

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

      public CreateChatInviteLink 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:
      CreateChatInviteLink
    • createsJoinRequest

      public CreateChatInviteLink 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:
      CreateChatInviteLink