public static class TdApi.TransferChatOwnership 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.
|
java.lang.String |
password
The password of the current user.
|
long |
userId
Identifier of the user to which transfer the ownership.
|
Constructor and Description |
---|
TransferChatOwnership()
Default constructor for a function, which changes the owner of a chat.
|
TransferChatOwnership(long chatId,
long userId,
java.lang.String password)
Creates a function, which changes the owner of a chat.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long userId
public java.lang.String password
public static final int CONSTRUCTOR
public TransferChatOwnership()
Returns Ok
public TransferChatOwnership(long chatId, long userId, java.lang.String password)
Returns Ok
chatId
- Chat identifier.userId
- Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user.password
- The password of the current user.public int getConstructor()
getConstructor
in class TdApi.Function