public static class TdApi.BlockMessageSenderFromReplies extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
deleteAllMessages
Pass true if all messages from the same sender must be deleted.
|
boolean |
deleteMessage
Pass true if the message must be deleted.
|
long |
messageId
The identifier of an incoming message in the Replies chat.
|
boolean |
reportSpam
Pass true if the sender must be reported 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() |
toString
public 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 if the message must be deleted.deleteAllMessages
- Pass true if all messages from the same sender must be deleted.reportSpam
- Pass true if the sender must be reported to the Telegram moderators.public int getConstructor()
getConstructor
in class TdApi.Function