Package it.tdlight.jni
Class TdApi.CreateChatInviteLink
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.CreateChatInviteLink
- Enclosing class:
- TdApi
public static class TdApi.CreateChatInviteLink extends TdApi.Function
Creates a new invite link for a chat.
Available for basic groups, supergroups,
and channels. Requires administrator
privileges and canInviteUsers right
in the chat.
Returns ChatInviteLink
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Chat identifier.static int
CONSTRUCTOR
int
expireDate
Point in time (Unix timestamp) when the link will expire; pass 0 if never.int
memberLimit
Maximum number of chat members that can join the chat by the link simultaneously; 0-99999; pass 0 if not limited. -
Constructor Summary
Constructors Constructor Description CreateChatInviteLink()
Creates a new invite link for a chat.CreateChatInviteLink(long chatId, int expireDate, int memberLimit)
Creates a new invite link for a chat.CreateChatInviteLink(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
expireDate
public int expireDatePoint in time (Unix timestamp) when the link will expire; pass 0 if never. -
memberLimit
public int memberLimitMaximum number of chat members that can join the chat by the link simultaneously; 0-99999; pass 0 if not limited. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
CreateChatInviteLink
public CreateChatInviteLink()Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat.Returns
ChatInviteLink
-
CreateChatInviteLink
public CreateChatInviteLink(long chatId, int expireDate, int memberLimit)Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat.Returns
ChatInviteLink
- Parameters:
chatId
- long Chat identifier.expireDate
- int Point in time (Unix timestamp) when the link will expire; pass 0 if never.memberLimit
- int Maximum number of chat members that can join the chat by the link simultaneously; 0-99999; pass 0 if not limited.
-
CreateChatInviteLink
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-