public static class TdApi.TransferChatOwnership extends TdApi.Function<TdApi.Ok>
Returns Ok
| 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 2-step verification 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; requires owner privileges in the chat.
|
TransferChatOwnership(long chatId,
long userId,
java.lang.String password)
Creates a function, which changes the owner of a chat; requires owner privileges in the chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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 2-step verification password of the current user.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object