Save a message draft associated to a chat.

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
messages.saveDraft#b4331e3f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int top_msg_id:flags.2?int peer:InputPeer message:string entities:flags.3?Vector<MessageEntity> = Bool;


Name Type Description
flags # Flags, see TL conditional fields
no_webpage flags.1?true Disable generation of the webpage preview
reply_to_msg_id flags.0?int Message ID the message should reply to
top_msg_id flags.2?int Forum topic where the message will be sent
peer InputPeer Destination of the message that should be sent
message string The draft
entities flags.3?Vector<MessageEntity> Message entities for styled text



Possible errors

Code Type Description
400 ENTITY_BOUNDS_INVALID A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length.
400 MSG_ID_INVALID Invalid message ID provided.
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages


Telegram allows creating forums with multiple distinct topics.

Styled text with message entities

How to create styled text with message entities

Message drafts

How to handle message drafts