telegram api constructor · layer 229 · #60fe3294

draftMessage

Represents a message draft.

definition

draftMessage#60fe3294 flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo message:string entities:flags.3?Vector<MessageEntity> media:flags.5?InputMedia date:int effect:flags.7?long suggested_post:flags.8?SuggestedPost rich_message:flags.9?RichMessage = DraftMessage;

parameters

nametypedescription
flags#Flags, see TL conditional fields
no_webpageflags.1?trueWhether no webpage preview will be generated
invert_mediaflags.6?trueIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
reply_toflags.4?InputReplyToIf set, indicates that the message should be sent in reply to the specified message or story.
messagestringThe draft
entitiesflags.3?Vector<MessageEntity>Message entities for styled text.
mediaflags.5?InputMediaMedia.
dateintDate of last update of the draft.
effectflags.7?longA message effect that should be played as specified here ».
suggested_postflags.8?SuggestedPostUsed to suggest a post to a channel, see here » for more info on the full flow.
rich_messageflags.9?RichMessage

type

DraftMessage · other constructors: draftMessageEmpty

history

present in layers 62–229 · constructor id changed 4×

idlayers
#fd8e711f62–165
#3fccf7ef166–181
#2d65321f182–205
#96eaa5eb206–226
#60fe3294227–229