public static class TdApi.DeleteMessages extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long[] |
messageIds
Identifiers of the messages to be deleted.
|
boolean |
revoke
Pass true to delete messages for all chat members.
|
| Constructor and Description |
|---|
DeleteMessages()
Default constructor for a function, which deletes messages.
|
DeleteMessages(long chatId,
long[] messageIds,
boolean revoke)
Creates a function, which deletes messages.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long[] messageIds
public boolean revoke
public static final int CONSTRUCTOR
public DeleteMessages()
Returns Ok
public DeleteMessages(long chatId,
long[] messageIds,
boolean revoke)
Returns Ok
chatId - Chat identifier.messageIds - Identifiers of the messages to be deleted. Use messageProperties.canBeDeletedOnlyForSelf and messageProperties.canBeDeletedForAllUsers to get suitable messages.revoke - Pass true to delete messages for all chat members. Always true for supergroups, channels and secret chats.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object