public static class TdApi.AddChatMember extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
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.
|
AddChatMember(long chatId,
long userId,
int forwardLimit)
Creates a function, which adds a new member to a chat.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long userId
public int forwardLimit
public static final int CONSTRUCTOR
public AddChatMember()
Returns Ok
public AddChatMember(long chatId, long userId, int forwardLimit)
Returns Ok
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()
getConstructor
in class TdApi.Function