Package it.tdlight.jni
Class TdApi.ViewSponsoredMessage
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.ViewSponsoredMessage
- Enclosing class:
- TdApi
public static class TdApi.ViewSponsoredMessage extends TdApi.Function
Informs TDLib that a sponsored message
was viewed by the user.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description long
chatId
Identifier of the chat with the sponsored message.static int
CONSTRUCTOR
int
sponsoredMessageId
The identifier of the sponsored message being viewed. -
Constructor Summary
Constructors Constructor Description ViewSponsoredMessage()
Informs TDLib that a sponsored message was viewed by the user.ViewSponsoredMessage(long chatId, int sponsoredMessageId)
Informs TDLib that a sponsored message was viewed by the user.ViewSponsoredMessage(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat with the sponsored message. -
sponsoredMessageId
public int sponsoredMessageIdThe identifier of the sponsored message being viewed. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
ViewSponsoredMessage
public ViewSponsoredMessage()Informs TDLib that a sponsored message was viewed by the user.Returns
Ok
-
ViewSponsoredMessage
public ViewSponsoredMessage(long chatId, int sponsoredMessageId)Informs TDLib that a sponsored message was viewed by the user.Returns
Ok
- Parameters:
chatId
- long Identifier of the chat with the sponsored message.sponsoredMessageId
- int The identifier of the sponsored message being viewed.
-
ViewSponsoredMessage
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-