Raw.DraftMessage
Represents a message draft.
draftMessage#2d65321f 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 = DraftMessage;
export namespace Raw {
export class DraftMessage {
constructor(params: {
noWebpage?: boolean;
invertMedia?: boolean;
replyTo?: Raw.TypeInputReplyTo;
message: string;
entities?: Array<Raw.TypeMessageEntity>;
media?: Raw.TypeInputMedia;
date: number;
effect?: bigint;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x2d65321f
Property
noWebpage
: boolean or undefinedWhether no webpage preview will be generated
invertMedia
: boolean or undefinedIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
replyTo
: Raw.TypeInputReplyTo or undefinedIf set, indicates that the message should be sent in reply to the specified message or story.
message
: stringThe draft
entities
: Array of Raw.TypeMessageEntity or undefinedMessage entities for styled text.
media
: Raw.TypeInputMedia or undefinedMedia.
date
: numberDate of last update of the draft.
effect
: bigint or undefined