Package org.drinkless.tdlib
Class TdApi.SendTextMessageDraft
- Enclosing class:
- TdApi
Sends a draft for a being generated text message; for bots only.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongChat identifier.static final intIdentifier uniquely determining type of the object.longUnique identifier of the draft.intThe forum topic identifier in which the message will be sent; pass 0 if none.Draft text of the message. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which sends a draft for a being generated text message; for bots only.SendTextMessageDraft(long chatId, int forumTopicId, long draftId, TdApi.FormattedText text) Creates a function, which sends a draft for a being generated text message; for bots only. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat identifier. -
forumTopicId
public int forumTopicIdThe forum topic identifier in which the message will be sent; pass 0 if none. -
draftId
public long draftIdUnique identifier of the draft. -
text
Draft text of the message. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendTextMessageDraft
public SendTextMessageDraft()Default constructor for a function, which sends a draft for a being generated text message; for bots only.Returns
Ok -
SendTextMessageDraft
Creates a function, which sends a draft for a being generated text message; for bots only.Returns
Ok- Parameters:
chatId- Chat identifier.forumTopicId- The forum topic identifier in which the message will be sent; pass 0 if none.draftId- Unique identifier of the draft.text- Draft text of the message.
-
-
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
-