Package it.ernytech.tdlib
Class TdApi.ChangeChatReportSpamState
- java.lang.Object
-
- it.ernytech.tdlib.TdApi.Object
-
- it.ernytech.tdlib.TdApi.Function
-
- it.ernytech.tdlib.TdApi.ChangeChatReportSpamState
-
- Enclosing class:
- TdApi
public static class TdApi.ChangeChatReportSpamState extends TdApi.Function
Used to let the server know whether a chat is spam or not. Can be used only if ChatReportSpamState.canReportSpam is true. After this request, ChatReportSpamState.canReportSpam becomes false forever.Returns
Ok
-
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Chat identifier.static int
CONSTRUCTOR
Identifier uniquely determining type of the object.boolean
isSpamChat
If true, the chat will be reported as spam; otherwise it will be marked as not spam.
-
Constructor Summary
Constructors Constructor Description ChangeChatReportSpamState()
Default constructor.ChangeChatReportSpamState(long chatId, boolean isSpamChat)
Constructor for initialization of all fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConstructor()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class it.ernytech.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Chat identifier.
-
isSpamChat
public boolean isSpamChat
If true, the chat will be reported as spam; otherwise it will be marked as not spam.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChangeChatReportSpamState
public ChangeChatReportSpamState()
Default constructor.
-
ChangeChatReportSpamState
public ChangeChatReportSpamState(long chatId, boolean isSpamChat)
Constructor for initialization of all fields.- Parameters:
chatId
- Chat identifier.isSpamChat
- If true, the chat will be reported as spam; otherwise it will be marked as not spam.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
-