Package com.pengrad.telegrambot.request
Class CreateChatInviteLink
- java.lang.Object
-
- com.pengrad.telegrambot.request.BaseRequest<CreateChatInviteLink,ChatInviteLinkResponse>
-
- com.pengrad.telegrambot.request.CreateChatInviteLink
-
public class CreateChatInviteLink extends BaseRequest<CreateChatInviteLink,ChatInviteLinkResponse>
Stas Parshin 10 March 2021
-
-
Field Summary
-
Fields inherited from class com.pengrad.telegrambot.request.BaseRequest
thisAsT
-
-
Constructor Summary
Constructors Constructor Description CreateChatInviteLink(java.lang.Object chatId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateChatInviteLinkcreatesJoinRequest(java.lang.Boolean createsJoinRequest)CreateChatInviteLinkexpireDate(java.lang.Integer expireDate)CreateChatInviteLinkmemberLimit(java.lang.Integer memberLimit)CreateChatInviteLinkname(java.lang.String name)-
Methods inherited from class com.pengrad.telegrambot.request.BaseRequest
add, addAll, getContentType, getFileName, getMethod, getParameters, getResponseType, getTimeoutSeconds, isMultipart, toWebhookResponse
-
-
-
-
Method Detail
-
name
public CreateChatInviteLink name(java.lang.String name)
- Parameters:
name- Invite link name; 0-32 characters
-
expireDate
public CreateChatInviteLink expireDate(java.lang.Integer expireDate)
-
memberLimit
public CreateChatInviteLink memberLimit(java.lang.Integer memberLimit)
-
createsJoinRequest
public CreateChatInviteLink createsJoinRequest(java.lang.Boolean createsJoinRequest)
- Parameters:
createsJoinRequest- True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified
-
-