- Enclosing class:
- TdApi
Deletes all messages sent by the
specified message sender in a chat.
Supported only for supergroups; requires
canDeleteMessages administrator privileges.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
Identifier of the sender of messages to delete. -
Constructor Summary
ConstructorDescriptionDeletes all messages sent by the specified message sender in a chat.DeleteChatMessagesBySender
(long chatId, TdApi.MessageSender senderId) Deletes all messages sent by the specified message sender in a chat.Deletes all messages sent by the specified message sender in a chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
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. ReturnsOk
-
DeleteChatMessagesBySender
Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges. ReturnsOk
- Parameters:
chatId
- long Chat identifier.senderId
- MessageSender Identifier of the sender of messages to delete.
-
DeleteChatMessagesBySender
Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires canDeleteMessages administrator privileges. ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-