Package it.tdlight.jni
Class TdApi.UpgradeBasicGroupChatToSupergroupChat
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.UpgradeBasicGroupChatToSupergroupChat
- Enclosing class:
- TdApi
public static class TdApi.UpgradeBasicGroupChatToSupergroupChat extends TdApi.Function
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
Fields Modifier and Type Field Description long
chatId
Identifier of the chat to upgrade.static int
CONSTRUCTOR
-
Constructor Summary
Constructors Constructor Description UpgradeBasicGroupChatToSupergroupChat()
Creates 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.UpgradeBasicGroupChatToSupergroupChat(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
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:
- Constant Field Values
-
-
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.Returns
Chat
-
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.Returns
Chat
- Parameters:
chatId
- long Identifier of the chat to upgrade.
-
UpgradeBasicGroupChatToSupergroupChat
- 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()
-