save_draft()¶
- async Client.save_draft()¶
Save a message draft.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.message (
str) – The draft message text.no_webpage (
bool, optional) – If True, disables link previews for links in this draft.invert_media (
bool, optional) – If True, inverts the position of the media (above/below the caption).reply_to (
InputReplyTo, optional) – The message to reply to.entities (List of
MessageEntity, optional) – Text entities (bold, italic, etc.) in the draft.media (
InputMedia, optional) – Media attached to the draft.
- Returns:
bool– True on success.
Example
await app.save_draft("me", "My draft text")