Crash hotfix for the ANNOYING PALOCHKA fix

This commit is contained in:
Bohdan Horbeshko 2026-06-20 12:57:02 -04:00
parent 0d2b4972fa
commit 7c5584d839

View file

@ -1983,8 +1983,10 @@ func (c *Client) SendMessageToGateway(chatId int64, message *client.Message, id
if prefix != "" {
separator := c.getPrefixSeparator(chatId)
newText.WriteString(separator)
if reply != nil {
reply.End += uint64(len(separator))
}
}
newText.WriteString(text)
}
text = newText.String()