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. For group chats this will release the usernames and remove all members. Use the field chat.canBeDeletedForAllUsers to find whether the method can be applied to the chat. Returns Ok
  • 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. For group chats this will release the usernames and remove all members. Use the field chat.canBeDeletedForAllUsers to find whether the method can be applied to the chat. Returns Ok
    • DeleteChat

      public DeleteChat(long chatId)
      Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. Use the field chat.canBeDeletedForAllUsers to find whether the method can be applied to the chat. 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. For group chats this will release the usernames and remove all members. Use the field chat.canBeDeletedForAllUsers to find whether the method can be applied to the chat. Returns Ok
      Throws:
      IOException
  • Method Details