Skip to content

Telegram crashes when editing message with empty code block after Cyrillic text #1316

@Heliotropoff

Description

@Heliotropoff

Environment:

Telegram version: 12.3 (277495) - App Store version
macOS Tahoe 26.1 (25B78)
Device: MacBook Air M1

Steps to reproduce:

  1. Open any chat, except for "Saved Messages" in Telegram desktop (macOS)
  2. Type a message containing Cyrillic characters (e.g., "Привет, коллега")
  3. At the end of the message, add an empty R code block: r or python
  4. Press Send
  5. Try to edit sent message

Expected behaviour:

The message should load into the edit field with the empty markdown syntax absent (cleaned up/removed).

Actual behaviour:

Telegram client crashes immediately with EXC_BREAKPOINT (SIGTRAP) exception when attempting to edit the message. The app quits unexpectedly.

Note:

The message sends successfully - the crash only occurs when attempting to edit it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions