Class TdApi.SendRichMessageDraft

Enclosing class:
TdApi

public static class TdApi.SendRichMessageDraft extends TdApi.Function<TdApi.Ok>
Sends a draft for a being generated rich message; for bots only.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • forumTopicId

      public int forumTopicId
      The forum topic identifier in which the message will be sent; pass 0 if none.
    • draftId

      public long draftId
      Unique identifier of the draft.
    • message

      public TdApi.InputRichMessage message
      Draft of the message; file upload isn't supported.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SendRichMessageDraft

      public SendRichMessageDraft()
      Default constructor for a function, which sends a draft for a being generated rich message; for bots only.

      Returns Ok

    • SendRichMessageDraft

      public SendRichMessageDraft(long chatId, int forumTopicId, long draftId, TdApi.InputRichMessage message)
      Creates a function, which sends a draft for a being generated rich 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.
      message - Draft of the message; file upload isn't supported.
  • 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR