diff --git a/src/TL.Helpers.cs b/src/TL.Helpers.cs index 4c34199..241ae09 100644 --- a/src/TL.Helpers.cs +++ b/src/TL.Helpers.cs @@ -498,15 +498,7 @@ namespace TL { case '\\': sb.Remove(offset++, 1); break; case '*': ProcessEntity(); break; - case '~': - if (offset + 1 < sb.Length && sb[offset + 1] == '~') - { - sb.Remove(offset, 1); - ProcessEntity(); - } - else - ProcessEntity(); - break; + case '~': ProcessEntity(); break; case '_': if (offset + 1 < sb.Length && sb[offset + 1] == '_') { @@ -516,6 +508,15 @@ namespace TL else ProcessEntity(); break; + case '|': + if (offset + 1 < sb.Length && sb[offset + 1] == '|') + { + sb.Remove(offset, 1); + ProcessEntity(); + } + else + offset++; + break; case '`': if (offset + 2 < sb.Length && sb[offset + 1] == '`' && sb[offset + 2] == '`') {