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_sendEncryptedFile_

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

Sends a message with a file attachment to a secret chat

Constructors

new
messages_sendEncryptedFile_(params: { silent?: true; peer: enums.InputEncryptedChat; random_id: bigint; data: Uint8Array; file: enums.InputEncryptedFile; })

Properties

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

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

file: enums.InputEncryptedFile

File attachment for the secret chat

peer: enums.InputEncryptedChat

Secret chat ID

random_id: bigint

Unique client message ID necessary to prevent message resending

optional
silent: true

Whether to send the file without triggering a notification

Static Properties

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