Raw.messages.SaveDraft
Save a message draft associated to a chat.
messages.saveDraft#d372c5ce flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo peer:InputPeer message:string entities:flags.3?Vector<MessageEntity> media:flags.5?InputMedia effect:flags.7?long = Bool;
export namespace Raw {
export namespace messages {
export class SaveDraft {
constructor(params: {
noWebpage?: boolean;
invertMedia?: boolean;
replyTo?: Raw.TypeInputReplyTo;
peer: Raw.TypeInputPeer;
message: string;
entities?: Array<Raw.TypeMessageEntity>;
media?: Raw.TypeInputMedia;
effect?: bigint;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xd372c5ce
Property
noWebpage
: boolean or undefinedDisable generation of the webpage preview
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.
peer
: Raw.TypeInputPeerDestination of the message that should be sent
message
: stringThe draft
entities
: Array of Raw.TypeMessageEntity or undefinedMessage entities for styled text
media
: Raw.TypeInputMedia or undefinedAttached media
effect
: bigint or undefined