- Enclosing class:
- TdApi
Blocks an original sender of a message in the Replies chat.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.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
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
BlockMessageSenderFromReplies
public BlockMessageSenderFromReplies()Blocks an original sender of a message in the Replies chat.Returns
Ok
-
BlockMessageSenderFromReplies
public BlockMessageSenderFromReplies(long messageId, boolean deleteMessage, boolean deleteAllMessages, boolean reportSpam) Blocks an original sender of a message in the Replies chat.Returns
Ok
- Parameters:
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.Returns
Ok
-
BlockMessageSenderFromReplies
Blocks an original sender of a message in the Replies chat.Returns
Ok
- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-