Module tdlight.api

Class TdApi.SetChatDraftMessage

Enclosing class:
TdApi

public static final class TdApi.SetChatDraftMessage extends TdApi.Function<TdApi.Ok>
Changes the draft message in a chat.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • messageThreadId

      public long messageThreadId
      If not 0, a message thread identifier in which the draft was changed.
    • draftMessage

      public TdApi.DraftMessage draftMessage
      New draft message; pass null to remove the draft.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetChatDraftMessage

      public SetChatDraftMessage()
      Changes the draft message in a chat.

      Returns Ok

    • SetChatDraftMessage

      public SetChatDraftMessage(long chatId, long messageThreadId, TdApi.DraftMessage draftMessage)
      Changes the draft message in a chat.

      Returns Ok

      Parameters:
      chatId - long Chat identifier.
      messageThreadId - long If not 0, a message thread identifier in which the draft was changed.
      draftMessage - DraftMessage New draft message; pass null to remove the draft.
    • SetChatDraftMessage

      public SetChatDraftMessage(DataInput input) throws IOException
      Changes the draft message in a chat.

      Returns Ok

      Throws:
      IOException
  • Method Details