Package org.drinkless.tdlib
Class TdApi.DeleteChatMessagesBySender
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.DeleteChatMessagesBySender
-
- Enclosing class:
- TdApi
public static class TdApi.DeleteChatMessagesBySender extends TdApi.Function
Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.MessageSendersenderIdIdentifier of the sender of messages to delete.
-
Constructor Summary
Constructors Constructor Description DeleteChatMessagesBySender()Default constructor for a function, which deletes all messages sent by the specified message sender in a chat.DeleteChatMessagesBySender(long chatId, TdApi.MessageSender senderId)Creates a function, which deletes all messages sent by the specified message sender in a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
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
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DeleteChatMessagesBySender
public DeleteChatMessagesBySender()
Default constructor for a function, which 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)Creates a function, which deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges.Returns
Ok- Parameters:
chatId- Chat identifier.senderId- Identifier of the sender of messages to delete.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-