Package it.tdlight.jni
Class TdApi.ViewSponsoredMessage
- Enclosing class:
- TdApi
Informs TDLib that a sponsored message
was viewed by the user.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat with the sponsored message.static final int
int
The identifier of the sponsored message being viewed. -
Constructor Summary
ConstructorDescriptionInforms 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
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:
-
-
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()
-