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_sendMedia_

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

Send a media

Constructors

new
messages_sendMedia_(params: { silent?: true; background?: true; clear_draft?: true; noforwards?: true; update_stickersets_order?: true; invert_media?: true; peer: enums.InputPeer; reply_to?: enums.InputReplyTo; media: enums.InputMedia; message: string; random_id: bigint; reply_markup?: enums.ReplyMarkup; entities?: Array<enums.MessageEntity>; schedule_date?: number; send_as?: enums.InputPeer; quick_reply_shortcut?: enums.InputQuickReplyShortcut; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
background: true

Send message in background

optional
clear_draft: true

Clear 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.

media: enums.InputMedia

Attached media

message: string

Caption

optional
noforwards: true

Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled

peer: enums.InputPeer

Destination

optional
quick_reply_shortcut: enums.InputQuickReplyShortcut
random_id: bigint

Random ID to avoid resending the same message

optional
reply_markup: enums.ReplyMarkup

Reply markup for bot keyboards

optional
reply_to: enums.InputReplyTo

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

optional
schedule_date: number

Scheduled message date for scheduled messages

optional
send_as: enums.InputPeer

Send this message as the specified peer

optional
silent: true

Send message silently (no notification should be triggered)

optional
update_stickersets_order: true

Whether to move used stickersets to top, see here for more info on this flag »

Static Properties

__F: (params: { silent?: true; background?: true; clear_draft?: true; noforwards?: true; update_stickersets_order?: true; invert_media?: true; peer: enums.InputPeer; reply_to?: enums.InputReplyTo; media: enums.InputMedia; message: string; random_id: bigint; reply_markup?: enums.ReplyMarkup; entities?: Array<enums.MessageEntity>; schedule_date?: number; send_as?: enums.InputPeer; quick_reply_shortcut?: enums.InputQuickReplyShortcut; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc