Class TdApi.DraftMessage
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.DraftMessage
- Enclosing class:
- TdApi
Contains information about a message draft.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
Point in time (Unix timestamp) when the draft was created.long
Identifier of the effect to apply to the message when it is sent; 0 if none.Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote.Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none. -
Constructor Summary
ConstructorDescriptionContains information about a message draft.DraftMessage
(TdApi.InputMessageReplyTo replyTo, int date, TdApi.InputMessageContent inputMessageText, long effectId) Contains information about a message draft. -
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
-
replyTo
Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none. -
date
public int datePoint in time (Unix timestamp) when the draft was created. -
inputMessageText
Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote. -
effectId
public long effectIdIdentifier of the effect to apply to the message when it is sent; 0 if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
DraftMessage
public DraftMessage()Contains information about a message draft. -
DraftMessage
public DraftMessage(TdApi.InputMessageReplyTo replyTo, int date, TdApi.InputMessageContent inputMessageText, long effectId) Contains information about a message draft.- Parameters:
replyTo
- Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none.date
- Point in time (Unix timestamp) when the draft was created.inputMessageText
- Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote.effectId
- Identifier of the effect to apply to the message when it is sent; 0 if none.
-
-
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
-