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>InputReplyToMessage_

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

Reply to a message.

Constructors

new
InputReplyToMessage_(params: { reply_to_msg_id: number; top_msg_id?: number; reply_to_peer_id?: enums.InputPeer; quote_text?: string; quote_entities?: Array<enums.MessageEntity>; quote_offset?: number; })

Properties

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

Message entities for styled text from the quote_text field.

optional
quote_offset: number

Offset of the message quote_text within the original message (in UTF-16 code units).

optional
quote_text: string

Used to quote-reply to only a certain section (specified here) of the original message. The maximum UTF-8 length for quotes is specified in the quote_length_max config key.

reply_to_msg_id: number

The message ID to reply to.

optional
reply_to_peer_id: enums.InputPeer

Used to reply to messages sent to another chat (specified here), can only be used for non-protected chats and messages.

optional
top_msg_id: number

This field must contain the topic ID only when replying to messages in forum topics different from the "General" topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1).
If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic.

Static Properties

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