public static class TdApi.BlockMessageSenderFromReplies extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
deleteAllMessages
Pass true to delete all messages from the same sender.
|
boolean |
deleteMessage
Pass true to delete the message.
|
long |
messageId
The identifier of an incoming message in the Replies chat.
|
boolean |
reportSpam
Pass true to report the sender to the Telegram moderators.
|
| Constructor and Description |
|---|
BlockMessageSenderFromReplies()
Default constructor for a function, which blocks an original sender of a message in the Replies chat.
|
BlockMessageSenderFromReplies(long messageId,
boolean deleteMessage,
boolean deleteAllMessages,
boolean reportSpam)
Creates a function, which blocks an original sender of a message in the Replies chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long messageId
public boolean deleteMessage
public boolean deleteAllMessages
public boolean reportSpam
public static final int CONSTRUCTOR
public BlockMessageSenderFromReplies()
Returns Ok
public BlockMessageSenderFromReplies(long messageId,
boolean deleteMessage,
boolean deleteAllMessages,
boolean reportSpam)
Returns Ok
messageId - The identifier of an incoming message in the Replies chat.deleteMessage - Pass true to delete the message.deleteAllMessages - Pass true to delete all messages from the same sender.reportSpam - Pass true to report the sender to the Telegram moderators.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object