Package org.drinkless.tdlib
Class TdApi.UpgradeBasicGroupChatToSupergroupChat
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Chat>
org.drinkless.tdlib.TdApi.UpgradeBasicGroupChatToSupergroupChat
- Enclosing class:
- TdApi
Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group.
Returns Chat
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the chat to upgrade.static final int
Identifier uniquely determining type of the object. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges.UpgradeBasicGroupChatToSupergroupChat
(long chatId) Creates a function, which creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to upgrade. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UpgradeBasicGroupChatToSupergroupChat
public UpgradeBasicGroupChatToSupergroupChat()Default constructor for a function, which creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group.Returns
Chat
-
UpgradeBasicGroupChatToSupergroupChat
public UpgradeBasicGroupChatToSupergroupChat(long chatId) Creates a function, which creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group.Returns
Chat
- Parameters:
chatId
- Identifier of the chat to upgrade.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-