- Enclosing class:
- TdApi
Blocks an original sender of a message
in the Replies chat.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
Pass true to delete all messages from the same sender.boolean
Pass true to delete the message.long
The identifier of an incoming message in the Replies chat.boolean
Pass true to report the sender to the Telegram moderators. -
Constructor Summary
ConstructorDescriptionBlocks an original sender of a message in the Replies chat.BlockMessageSenderFromReplies
(long messageId, boolean deleteMessage, boolean deleteAllMessages, boolean reportSpam) Blocks an original sender of a message in the Replies chat.Blocks an original sender of a message in the Replies 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
-
messageId
public long messageIdThe identifier of an incoming message in the Replies chat. -
deleteMessage
public boolean deleteMessagePass true to delete the message. -
deleteAllMessages
public boolean deleteAllMessagesPass true to delete all messages from the same sender. -
reportSpam
public boolean reportSpamPass true to report the sender to the Telegram moderators. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
BlockMessageSenderFromReplies
public BlockMessageSenderFromReplies()Blocks an original sender of a message in the Replies chat. ReturnsOk
-
BlockMessageSenderFromReplies
public BlockMessageSenderFromReplies(long messageId, boolean deleteMessage, boolean deleteAllMessages, boolean reportSpam) Blocks an original sender of a message in the Replies chat. ReturnsOk
- Parameters:
messageId
- long The identifier of an incoming message in the Replies chat.deleteMessage
- boolean Pass true to delete the message.deleteAllMessages
- boolean Pass true to delete all messages from the same sender.reportSpam
- boolean Pass true to report the sender to the Telegram moderators.
-
BlockMessageSenderFromReplies
Blocks an original sender of a message in the Replies chat. 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()
-