buscar en el mensaje correcto
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Cat /dev/Nulo 2023-05-15 08:16:14 -03:00
parent 815e219eb8
commit ef658e4641
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func (config Config) handleMessage(bot *tgbotapi.BotAPI, update tgbotapi.Update)
}
// ugh https://github.com/go-telegram-bot-api/telegram-bot-api/issues/231
text := update.Message.Text
text := searchMsg.Text
utfEncodedString := utf16.Encode([]rune(text))
runeString := utf16.Decode(utfEncodedString[e.Offset : e.Offset+e.Length])
text = string(runeString)