messages.SaveDraft

class pyrogram.raw.functions.messages.SaveDraft

Save a message draft associated to a chat.

Details:
  • Layer: 187

  • ID: D372C5CE

Parameters:
  • peer (InputPeer) – Destination of the message that should be sent

  • message (str) – The draft

  • no_webpage (bool, optional) – Disable generation of the webpage preview

  • invert_media (bool, optional) – If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

  • reply_to (InputReplyTo, optional) – If set, indicates that the message should be sent in reply to the specified message or story.

  • entities (List of MessageEntity, optional) – Message entities for styled text

  • media (InputMedia, optional) – Attached media

  • effect (int 64-bit, optional) – N/A

Returns:

bool