Package it.tdlight.jni
Class TdApi.DeleteSupergroup
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.DeleteSupergroup
- Enclosing class:
- TdApi
public static class TdApi.DeleteSupergroup extends TdApi.Function
Deletes a supergroup or channel along
with all messages in the corresponding
chat. This will release the supergroup
or channel username and remove all
members; requires owner privileges in
the supergroup or channel. Chats with
more than 1000 members can't be deleted
using this method.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
int
supergroupId
Identifier of the supergroup or channel. -
Constructor Summary
Constructors Constructor Description DeleteSupergroup()
Deletes a supergroup or channel along with all messages in the corresponding chat.DeleteSupergroup(int supergroupId)
Deletes a supergroup or channel along with all messages in the corresponding chat.DeleteSupergroup(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
-
supergroupId
public int supergroupIdIdentifier of the supergroup or channel. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
DeleteSupergroup
public DeleteSupergroup()Deletes a supergroup or channel along with all messages in the corresponding chat. This will release the supergroup or channel username and remove all members; requires owner privileges in the supergroup or channel. Chats with more than 1000 members can't be deleted using this method.Returns
Ok
-
DeleteSupergroup
public DeleteSupergroup(int supergroupId)Deletes a supergroup or channel along with all messages in the corresponding chat. This will release the supergroup or channel username and remove all members; requires owner privileges in the supergroup or channel. Chats with more than 1000 members can't be deleted using this method.Returns
Ok
- Parameters:
supergroupId
- int Identifier of the supergroup or channel.
-
DeleteSupergroup
- 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()
-