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

x/mtkruto/tl/2_types.ts>DraftMessage_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class DraftMessage_
import { DraftMessage_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Represents a message draft.

Constructors

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

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
date: number

Date of last update of the draft.

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

Media.

message: string

The draft

optional
no_webpage: true

Whether no webpage preview will be generated

optional
reply_to: enums.InputReplyTo

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

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc