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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
no_webpage | true | Whether no webpage preview will be generated |
invert_media | true | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
reply_to | InputReplyTo | If set, indicates that the message should be sent in reply to the specified message or story. |
message | string | The draft |
entities | Vector<MessageEntity> | Message entities for styled text. |
media | InputMedia | Media. |
date | int | Date of last update of the draft. |
effect | long | A message effect that should be played as specified here ». |
suggested_post | SuggestedPost | Used to suggest a post to a channel, see here » for more info on the full flow. |
rich_message | RichMessage |
type
DraftMessage · other constructors: draftMessageEmpty
history
present in layers 62–229 · constructor id changed 4×
| id | layers |
|---|---|
| #fd8e711f | 62–165 |
| #3fccf7ef | 166–181 |
| #2d65321f | 182–205 |
| #96eaa5eb | 206–226 |
| #60fe3294 | 227–229 |