draftMessage #

Represents a message draft.

Layer 223

draftMessage#96eaa5eb 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 = 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.

Type #

DraftMessage

Styled text with message entities #

How to create styled text with message entities

Animated message effects #

Telegram allows adding spectacular animated effects to messages you send.

Suggested posts #

Telegram offers a powerful monetization feature to channel administrators: suggested posts.

Message drafts #

How to handle message drafts