Interface SetChatDraftMessage

Changes the draft message in a chat or a topic. Request type for Tdjson#setChatDraftMessage.

interface SetChatDraftMessage {
    @type: "setChatDraftMessage";
    chat_id: number;
    draft_message: DraftMessage;
    topic_id: MessageTopic;
}

Properties

@type: "setChatDraftMessage"
chat_id: number

Chat identifier.

draft_message: DraftMessage

New draft message; pass null to remove the draft. All files in draft message content must be of the type inputFileLocal. Media thumbnails and captions are ignored.

topic_id: MessageTopic

Topic in which the draft will be changed; pass null to change the draft for the chat itself.