Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>messages_saveDraft_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_saveDraft_
extends Function_<boolean>
import { messages_saveDraft_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Save a message draft associated to a chat.

Constructors

new
messages_saveDraft_(params: { no_webpage?: true; invert_media?: true; reply_to?: enums.InputReplyTo; peer: enums.InputPeer; message: string; entities?: Array<enums.MessageEntity>; media?: enums.InputMedia; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
entities: Array<enums.MessageEntity>

Message entities for styled text

optional
invert_media: true

If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

optional
media: enums.InputMedia

Attached media

message: string

The draft

optional
no_webpage: true

Disable generation of the webpage preview

peer: enums.InputPeer

Destination of the message that should be sent

optional
reply_to: enums.InputReplyTo

If set, indicates that the message should be sent in reply to the specified message or story.

Static Properties

__F: (params: { no_webpage?: true; invert_media?: true; reply_to?: enums.InputReplyTo; peer: enums.InputPeer; message: string; entities?: Array<enums.MessageEntity>; media?: enums.InputMedia; }) => boolean
readonly
[name]: string
readonly
[paramDesc]: ParamDesc