Package org.drinkless.tdlib
Class TdApi.BlockMessageSenderFromReplies
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.BlockMessageSenderFromReplies
-
- Enclosing class:
- TdApi
public static class TdApi.BlockMessageSenderFromReplies extends TdApi.Function
Blocks an original sender of a message in the Replies chat.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleandeleteAllMessagesPass true if all messages from the same sender must be deleted.booleandeleteMessagePass true if the message must be deleted.longmessageIdThe identifier of an incoming message in the Replies chat.booleanreportSpamPass true if the sender must be reported to the Telegram moderators.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
messageId
public long messageId
The identifier of an incoming message in the Replies chat.
-
deleteMessage
public boolean deleteMessage
Pass true if the message must be deleted.
-
deleteAllMessages
public boolean deleteAllMessages
Pass true if all messages from the same sender must be deleted.
-
reportSpam
public boolean reportSpam
Pass true if the sender must be reported to the Telegram moderators.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlockMessageSenderFromReplies
public BlockMessageSenderFromReplies()
Default constructor for a function, which blocks an original sender of a message in the Replies chat.Returns
Ok
-
BlockMessageSenderFromReplies
public BlockMessageSenderFromReplies(long messageId, boolean deleteMessage, boolean deleteAllMessages, boolean reportSpam)Creates a function, which 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 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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-