Class TdApi.MessageSponsor
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.MessageSponsor
- Enclosing class:
- TdApi
Information about the sponsor of a message.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Additional optional information about the sponsor to be shown along with the message.Photo of the sponsor; may be null if must not be shown.URL of the sponsor to be opened when the message is clicked. -
Constructor Summary
ConstructorDescriptionInformation about the sponsor of a message.MessageSponsor
(String url, TdApi.Photo photo, String info) Information about the sponsor of a message. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
url
URL of the sponsor to be opened when the message is clicked. -
photo
Photo of the sponsor; may be null if must not be shown. -
info
Additional optional information about the sponsor to be shown along with the message. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageSponsor
public MessageSponsor()Information about the sponsor of a message. -
MessageSponsor
Information about the sponsor of a message.- Parameters:
url
- URL of the sponsor to be opened when the message is clicked.photo
- Photo of the sponsor; may be null if must not be shown.info
- Additional optional information about the sponsor to be shown along with the message.
-
-
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
-