Class 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 Details

    • supergroupId

      public int supergroupId
      Identifier 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

      public DeleteSupergroup​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details