Module tdlight.api

Class TdApi.DeleteChatMessagesBySender

Enclosing class:
TdApi

public static final class TdApi.DeleteChatMessagesBySender extends TdApi.Function<TdApi.Ok>
Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges. Returns Ok
  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • senderId

      public TdApi.MessageSender senderId
      Identifier of the sender of messages to delete.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • DeleteChatMessagesBySender

      public DeleteChatMessagesBySender()
      Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges. Returns Ok
    • DeleteChatMessagesBySender

      public DeleteChatMessagesBySender(long chatId, TdApi.MessageSender senderId)
      Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges. Returns Ok
      Parameters:
      chatId - long Chat identifier.
      senderId - MessageSender Identifier of the sender of messages to delete.
    • DeleteChatMessagesBySender

      public DeleteChatMessagesBySender(DataInput input) throws IOException
      Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges. Returns Ok
      Throws:
      IOException
  • Method Details