diff --git a/mods/unsplash.go b/mods/unsplash.go index c449bb6..51af487 100644 --- a/mods/unsplash.go +++ b/mods/unsplash.go @@ -52,7 +52,7 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) { text = *(update.ReplyTo.Text) user = update.ReplyTo.User } else { - if strings.Index(text, " ") > 0 { + if strings.Index(*(update.Text), " ") > 0 { text = strings.TrimSpace(strings.SplitN(*(update.Text), " ", 2)[1]) } }