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

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

Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.

Constructors

new
MessageEntityPre_(params: { offset: number; length: number; language: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
language: string

Programming language of the code

length: number

Length of message entity within message (in UTF-16 code units)

offset: number

Offset of message entity within message (in UTF-16 code units)

Static Properties

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