Package it.tdlight.jni
Class TdApi.DeleteMessages
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.DeleteMessages
- Enclosing class:
- TdApi
public static class TdApi.DeleteMessages extends TdApi.Function
Deletes messages.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Chat identifier.static int
CONSTRUCTOR
long[]
messageIds
Identifiers of the messages to be deleted.boolean
revoke
Pass true to try to delete messages for all chat members. -
Constructor Summary
Constructors Constructor Description DeleteMessages()
Deletes messages.DeleteMessages(long chatId, long[] messageIds, boolean revoke)
Deletes messages.DeleteMessages(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
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. -
messageIds
public long[] messageIdsIdentifiers of the messages to be deleted. -
revoke
public boolean revokePass true to try to delete messages for all chat members. Always true for supergroups, channels and secret chats. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
DeleteMessages
public DeleteMessages()Deletes messages.Returns
Ok
-
DeleteMessages
public DeleteMessages(long chatId, long[] messageIds, boolean revoke)Deletes messages.Returns
Ok
- Parameters:
chatId
- long Chat identifier.messageIds
- long[] Identifiers of the messages to be deleted.revoke
- boolean Pass true to try to delete messages for all chat members. Always true for supergroups, channels and secret chats.
-
DeleteMessages
- 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()
-