Module tdlight.api

Class TdApi.DeleteForumTopic

Enclosing class:
TdApi

public static final class TdApi.DeleteForumTopic extends TdApi.Function<TdApi.Ok>
Deletes all messages in a forum topic; requires canDeleteMessages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages. Returns Ok
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the chat.
    static final int
     
    long
    Message thread identifier of the forum topic.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deletes all messages in a forum topic; requires canDeleteMessages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages.
    DeleteForumTopic(long chatId, long messageThreadId)
    Deletes all messages in a forum topic; requires canDeleteMessages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages.
    Deletes all messages in a forum topic; requires canDeleteMessages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages.
  • 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
      Identifier of the chat.
    • messageThreadId

      public long messageThreadId
      Message thread identifier of the forum topic.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • DeleteForumTopic

      public DeleteForumTopic()
      Deletes all messages in a forum topic; requires canDeleteMessages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages. Returns Ok
    • DeleteForumTopic

      public DeleteForumTopic(long chatId, long messageThreadId)
      Deletes all messages in a forum topic; requires canDeleteMessages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages. Returns Ok
      Parameters:
      chatId - long Identifier of the chat.
      messageThreadId - long Message thread identifier of the forum topic.
    • DeleteForumTopic

      public DeleteForumTopic(DataInput input) throws IOException
      Deletes all messages in a forum topic; requires canDeleteMessages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages. Returns Ok
      Throws:
      IOException
  • Method Details