Module tdlight.api

Class TdApi.DeleteChatMessagesFromUser

Enclosing class:
TdApi

public static final class TdApi.DeleteChatMessagesFromUser extends TdApi.Function<TdApi.Ok>
Deletes all messages sent by the specified user to a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • userId

      public long userId
      User identifier.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • DeleteChatMessagesFromUser

      public DeleteChatMessagesFromUser()
      Deletes all messages sent by the specified user to a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges.

      Returns Ok

    • DeleteChatMessagesFromUser

      public DeleteChatMessagesFromUser(long chatId, long userId)
      Deletes all messages sent by the specified user to a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges.

      Returns Ok

      Parameters:
      chatId - long Chat identifier.
      userId - long User identifier.
    • DeleteChatMessagesFromUser

      public DeleteChatMessagesFromUser(DataInput input) throws IOException
      Deletes all messages sent by the specified user to a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges.

      Returns Ok

      Throws:
      IOException
  • Method Details