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_sendEncryptedService_

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

Sends a service message to a secret chat.

Constructors

new
messages_sendEncryptedService_(params: { peer: enums.InputEncryptedChat; random_id: bigint; data: Uint8Array; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
data: Uint8Array

TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization

peer: enums.InputEncryptedChat

Secret chat ID

random_id: bigint

Unique client message ID required to prevent message resending

Static Properties

__F: (params: { peer: enums.InputEncryptedChat; random_id: bigint; data: Uint8Array; }) => enums.messages.SentEncryptedMessage
readonly
[name]: string
readonly
[paramDesc]: ParamDesc