RichTextDiff¶ class pyrogram.types.RichTextDiff[source]¶ A diff text, representing the difference between a text and its previous version. Parameters: text (RichText) – The new text. old_text (RichText) – The previous version of the text.