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

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

Indicates a service message

Constructors

new
MessageService_(params: { out?: true; mentioned?: true; media_unread?: true; silent?: true; post?: true; legacy?: true; id: number; from_id?: enums.Peer; peer_id: enums.Peer; reply_to?: enums.MessageReplyHeader; date: number; action: enums.MessageAction; ttl_period?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
action: enums.MessageAction

Event connected with the service message

date: number

Message date

optional
from_id: enums.Peer

ID of the sender of this message

id: number

Message ID

optional
legacy: true

This is a legacy message: it has to be refetched with the new layer

optional
media_unread: true

Whether the message contains unread media

optional
mentioned: true

Whether we were mentioned in the message

optional
out: true

Whether the message is outgoing

peer_id: enums.Peer

Sender of service message

optional
post: true

Whether it's a channel post

optional
reply_to: enums.MessageReplyHeader

Reply (thread) information

optional
silent: true

Whether the message is silent

optional
ttl_period: number

Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.

Static Properties

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