SEGFAULLSSTRSS

This commit is contained in:
Hamcha 2016-06-20 17:57:26 +02:00
parent 5948f30396
commit 05a83c297c
1 changed files with 4 additions and 0 deletions

View File

@ -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 {