Package org.drinkless.tdlib
Class TdApi.DraftMessage
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.DraftMessage
- Enclosing class:
- TdApi
Contains information about a message draft.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) when the draft was created.longIdentifier 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.Information about the suggested post; may be null if none. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about a message draft.DraftMessage(TdApi.InputMessageReplyTo replyTo, int date, TdApi.InputMessageContent inputMessageText, long effectId, TdApi.InputSuggestedPostInfo suggestedPostInfo) Contains information about a message draft. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.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. -
suggestedPostInfo
Information about the suggested post; may be null 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, TdApi.InputSuggestedPostInfo suggestedPostInfo) 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.suggestedPostInfo- Information about the suggested post; may be null if none.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-