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_sendEncrypted_

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

Sends a text message to a secret chat.

Constructors

new
messages_sendEncrypted_(params: { silent?: true; 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 that was created during chat initialization

peer: enums.InputEncryptedChat

Secret chat ID

random_id: bigint

Unique client message ID, necessary to avoid message resending

optional
silent: true

Send encrypted message without a notification

Static Properties

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