public static class TdApi.AddChatMember extends TdApi.Function<TdApi.FailedToAddMembers>
Returns FailedToAddMembers
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
forwardLimit
The number of earlier messages from the chat to be forwarded to the new member; up to 100.
|
long |
userId
Identifier of the user.
|
| Constructor and Description |
|---|
AddChatMember()
Default constructor for a function, which adds a new member to a chat; requires canInviteUsers member right.
|
AddChatMember(long chatId,
long userId,
int forwardLimit)
Creates a function, which adds a new member to a chat; requires canInviteUsers member right.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long userId
public int forwardLimit
public static final int CONSTRUCTOR
public AddChatMember()
Returns FailedToAddMembers
public AddChatMember(long chatId,
long userId,
int forwardLimit)
Returns FailedToAddMembers
chatId - Chat identifier.userId - Identifier of the user.forwardLimit - The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object