java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Chat>
it.tdlight.jni.TdApi.UpgradeBasicGroupChatToSupergroupChat
- Enclosing class:
- TdApi
public static final class TdApi.UpgradeBasicGroupChatToSupergroupChat
extends TdApi.Function<TdApi.Chat>
Creates a new supergroup from an
existing basic group and sends a
corresponding messageChatUpgradeTo
and messageChatUpgradeFrom; requires
creator privileges. Deactivates the
original basic group.
Returns
Chat
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat to upgrade.static final int
-
Constructor Summary
ConstructorDescriptionCreates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges.UpgradeBasicGroupChatToSupergroupChat
(long chatId) Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges.Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to upgrade. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
UpgradeBasicGroupChatToSupergroupChat
public UpgradeBasicGroupChatToSupergroupChat()Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges. Deactivates the original basic group. ReturnsChat
-
UpgradeBasicGroupChatToSupergroupChat
public UpgradeBasicGroupChatToSupergroupChat(long chatId) Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges. Deactivates the original basic group. ReturnsChat
- Parameters:
chatId
- long Identifier of the chat to upgrade.
-
UpgradeBasicGroupChatToSupergroupChat
Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges. Deactivates the original basic group. ReturnsChat
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-