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_sendMessage_

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

Sends a message to a chat

Constructors

new
messages_sendMessage_(params: { no_webpage?: true; silent?: true; background?: true; clear_draft?: true; noforwards?: true; update_stickersets_order?: true; invert_media?: true; peer: enums.InputPeer; reply_to?: enums.InputReplyTo; 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 this message as background message

optional
clear_draft: true

Clear the draft field

optional
entities: Array<enums.MessageEntity>

Message entities for sending 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.

message: string

The message

optional
no_webpage: true

Set this flag to disable generation of the webpage preview

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

The destination where the message will be sent

optional
quick_reply_shortcut: enums.InputQuickReplyShortcut
random_id: bigint

Unique client message ID required to prevent message resending

optional
reply_markup: enums.ReplyMarkup

Reply markup for sending bot buttons

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 this message silently (no notifications for the receivers)

optional
update_stickersets_order: true

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

Static Properties

__F: (params: { no_webpage?: true; silent?: true; background?: true; clear_draft?: true; noforwards?: true; update_stickersets_order?: true; invert_media?: true; peer: enums.InputPeer; reply_to?: enums.InputReplyTo; 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