From 7c5584d8394b1cf6c4d7f8d687bfd1d56cede39e Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Sat, 20 Jun 2026 12:57:02 -0400 Subject: [PATCH] Crash hotfix for the ANNOYING PALOCHKA fix --- telegram/utils.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telegram/utils.go b/telegram/utils.go index 6338b34..4884557 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -1983,7 +1983,9 @@ func (c *Client) SendMessageToGateway(chatId int64, message *client.Message, id if prefix != "" { separator := c.getPrefixSeparator(chatId) newText.WriteString(separator) - reply.End += uint64(len(separator)) + if reply != nil { + reply.End += uint64(len(separator)) + } } newText.WriteString(text) }