Package org.drinkless.tdlib
Class TdApi.ReportSponsoredChat
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.ReportSponsoredResult>
org.drinkless.tdlib.TdApi.ReportSponsoredChat
- Enclosing class:
- TdApi
Reports a sponsored chat to Telegram moderators.
Returns ReportSponsoredResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.byte[]
Option identifier chosen by the user; leave empty for the initial request.long
Unique identifier of the sponsored chat. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which reports a sponsored chat to Telegram moderators.ReportSponsoredChat
(long sponsoredChatUniqueId, byte[] optionId) Creates a function, which reports a sponsored chat to Telegram moderators. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
sponsoredChatUniqueId
public long sponsoredChatUniqueIdUnique identifier of the sponsored chat. -
optionId
public byte[] optionIdOption identifier chosen by the user; leave empty for the initial request. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ReportSponsoredChat
public ReportSponsoredChat()Default constructor for a function, which reports a sponsored chat to Telegram moderators.Returns
ReportSponsoredResult
-
ReportSponsoredChat
public ReportSponsoredChat(long sponsoredChatUniqueId, byte[] optionId) Creates a function, which reports a sponsored chat to Telegram moderators.Returns
ReportSponsoredResult
- Parameters:
sponsoredChatUniqueId
- Unique identifier of the sponsored chat.optionId
- Option identifier chosen by the user; leave empty for the initial request.
-
-
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
-