Package org.drinkless.tdlib
Class TdApi.TransferChatOwnership
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.TransferChatOwnership
-
- Enclosing class:
- TdApi
public static class TdApi.TransferChatOwnership extends TdApi.Function
Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.StringpasswordThe password of the current user.longuserIdIdentifier of the user to which transfer the ownership.
-
Constructor Summary
Constructors Constructor Description TransferChatOwnership()Default constructor for a function, which changes the owner of a chat.TransferChatOwnership(long chatId, long userId, String password)Creates a function, which changes the owner of a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Chat identifier.
-
userId
public long 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
public String password
The password of the current user.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransferChatOwnership
public TransferChatOwnership()
Default constructor for a function, which changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats.Returns
Ok
-
TransferChatOwnership
public TransferChatOwnership(long chatId, long userId, String password)Creates a function, which changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats.Returns
Ok- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-