Class TdApi.PushMessageContentPaidMedia
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.PushMessageContent
dev.voroby.springframework.telegram.client.TdApi.PushMessageContentPaidMedia
- Enclosing class:
- TdApi
A message with paid media.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
True, if the message is a pinned message with the specified content.long
Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message. -
Constructor Summary
ConstructorDescriptionA message with paid media.PushMessageContentPaidMedia
(long starCount, boolean isPinned) A message with paid media. -
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
-
starCount
public long starCountNumber of Telegram Stars needed to buy access to the media in the message; 0 for pinned message. -
isPinned
public boolean isPinnedTrue, if the message is a pinned message with the specified content. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PushMessageContentPaidMedia
public PushMessageContentPaidMedia()A message with paid media. -
PushMessageContentPaidMedia
public PushMessageContentPaidMedia(long starCount, boolean isPinned) A message with paid media.- Parameters:
starCount
- Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message.isPinned
- True, if the message is a pinned message with the specified content.
-
-
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
-