diff --git a/mods/unsplash.go b/mods/unsplash.go index c09f2d8..69c8c39 100644 --- a/mods/unsplash.go +++ b/mods/unsplash.go @@ -45,6 +45,10 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) { user := update.User if update.ReplyTo != nil { + if update.ReplyTo.Text == nil { + broker.SendTextMessage(update.Chat, "Non c'e' niente di 'ispiratore' in questo..", &update.MessageID) + return + } text = *(update.ReplyTo.Text) user = update.ReplyTo.User } else {