/unsplash

This commit is contained in:
Hamcha 2016-06-20 17:58:43 +02:00
parent 05a83c297c
commit e8996e0378
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) {
text = *(update.ReplyTo.Text)
user = update.ReplyTo.User
} else {
text = strings.Replace(*(update.Text), "/unsplash ", "", 1)
text = strings.TrimSpace(strings.Replace(*(update.Text), "/unsplash", "", 1))
}
author := user.FirstName