Package org.drinkless.tdlib
Class TdApi.ReportChatSponsoredMessage
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.ReportSponsoredResult>
org.drinkless.tdlib.TdApi.ReportChatSponsoredMessage
- Enclosing class:
- TdApi
public static class TdApi.ReportChatSponsoredMessage
extends TdApi.Function<TdApi.ReportSponsoredResult>
Reports a sponsored message to Telegram moderators.
Returns ReportSponsoredResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongChat identifier of the sponsored message.static final intIdentifier uniquely determining type of the object.longIdentifier of the sponsored message.byte[]Option identifier chosen by the user; leave empty for the initial request. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which reports a sponsored message to Telegram moderators.ReportChatSponsoredMessage(long chatId, long messageId, byte[] optionId) Creates a function, which reports a sponsored message to Telegram moderators. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat identifier of the sponsored message. -
messageId
public long messageIdIdentifier of the sponsored message. -
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
-
ReportChatSponsoredMessage
public ReportChatSponsoredMessage()Default constructor for a function, which reports a sponsored message to Telegram moderators.Returns
ReportSponsoredResult -
ReportChatSponsoredMessage
public ReportChatSponsoredMessage(long chatId, long messageId, byte[] optionId) Creates a function, which reports a sponsored message to Telegram moderators.Returns
ReportSponsoredResult- Parameters:
chatId- Chat identifier of the sponsored message.messageId- Identifier of the sponsored message.optionId- Option identifier chosen by the user; leave empty for the initial request.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-