MessageEntityDiffReplace#

class pyrogram.raw.types.MessageEntityDiffReplace#

Represents an diff replacement, render it as follows: See here for more info on how to render diff entities.

Insert old_text into the text at offset offset, underline it and color it in red: note that this insertion does not affect the offsets of entities that come after it.
underline the section delimited by offset and limit and color it in green.

Constructor of MessageEntity.

Details:
  • Layer: 225

  • ID: C6C1E5A7

Parameters:
  • offset (int 32-bit) – Offset of message entity within message (in UTF-16 code units)

  • length (int 32-bit) – Length of message entity within message (in UTF-16 code units)

  • old_text (str) – The chunk of text that was removed.