Skip to content

setChatDraftMessage

Sahri Riza Umami edited this page Jul 2, 2018 · 1 revision

Changes the draft message in a chat.

setChatDraftMessage(chat_id, reply_to_message_id, text, parse_mode, disable_web_page_preview, clear_draft, callback, data)
Field Type Description
chat_id int53 Chat identifier.
reply_to_message_id int53 Identifier of the message to reply to; 0 if none.
text string New draft message; may be null.
parse_mode string Text parse mode.
disable_web_page_preview Bool True, if rich web page previews for URLs in the message text should be disabled.
clear_draft Bool True, if a chat message draft should be deleted.

Example

  • Changes the draft message in chat 1234567890.

    setChatDraftMessage(1234567890, 0, '<b>Test</b> <code>setChatDraftMessage</code>', 'html')

    Response:

    {
      ["@type"] = "ok"
    }
    ``

Frequently Asked Questions
The Functions

Clone this wiki locally