- Enclosing class:
- TdApi
public static final class TdApi.GetChatSponsoredMessage
extends TdApi.Function<TdApi.SponsoredMessage>
Returns sponsored message to be shown
in a chat; for channel chats only.
Returns a 404 error if there is no
sponsored message in the chat.
Returns
SponsoredMessage
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat.static final int
-
Constructor Summary
ConstructorDescriptionReturns sponsored message to be shown in a chat; for channel chats only.GetChatSponsoredMessage
(long chatId) Returns sponsored message to be shown in a chat; for channel chats only.GetChatSponsoredMessage
(DataInput input) Returns sponsored message to be shown in a chat; for channel chats only. -
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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
GetChatSponsoredMessage
public GetChatSponsoredMessage()Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat. ReturnsSponsoredMessage
-
GetChatSponsoredMessage
public GetChatSponsoredMessage(long chatId) Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat. ReturnsSponsoredMessage
- Parameters:
chatId
- long Identifier of the chat.
-
GetChatSponsoredMessage
Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat. ReturnsSponsoredMessage
- 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()
-