Raw.MessageEntityPre

Raw.MessageEntityPre

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

messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity;
export namespace Raw {
  export class MessageEntityPre {
    constructor(params: { offset: number; length: number; language: string }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x73924be0

Property

  • offset : number

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

  • length : number

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

  • language : string

    Programming language of the code