Module tdlight.api

Class TdApi.DeleteChat

Enclosing class:
TdApi

public static final class TdApi.DeleteChat extends TdApi.Function<TdApi.Ok>
Deletes a chat along with all messages in the corresponding chat for all chat members; requires owner privileges. For group chats this will release the username and remove all members. Chats with more than 1000 members can't be deleted using this method. Returns Ok
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Chat identifier.
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deletes a chat along with all messages in the corresponding chat for all chat members; requires owner privileges.
    DeleteChat(long chatId)
    Deletes a chat along with all messages in the corresponding chat for all chat members; requires owner privileges.
    Deletes a chat along with all messages in the corresponding chat for all chat members; requires owner privileges.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
    void
     

    Methods inherited from class it.tdlight.jni.TdApi.Function

    toString

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • DeleteChat

      public DeleteChat()
      Deletes a chat along with all messages in the corresponding chat for all chat members; requires owner privileges. For group chats this will release the username and remove all members. Chats with more than 1000 members can't be deleted using this method. Returns Ok
    • DeleteChat

      public DeleteChat(long chatId)
      Deletes a chat along with all messages in the corresponding chat for all chat members; requires owner privileges. For group chats this will release the username and remove all members. Chats with more than 1000 members can't be deleted using this method. Returns Ok
      Parameters:
      chatId - long Chat identifier.
    • DeleteChat

      public DeleteChat(DataInput input) throws IOException
      Deletes a chat along with all messages in the corresponding chat for all chat members; requires owner privileges. For group chats this will release the username and remove all members. Chats with more than 1000 members can't be deleted using this method. Returns Ok
      Throws:
      IOException
  • Method Details