/unsplash
This commit is contained in:
parent
05a83c297c
commit
e8996e0378
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) {
|
||||||
text = *(update.ReplyTo.Text)
|
text = *(update.ReplyTo.Text)
|
||||||
user = update.ReplyTo.User
|
user = update.ReplyTo.User
|
||||||
} else {
|
} else {
|
||||||
text = strings.Replace(*(update.Text), "/unsplash ", "", 1)
|
text = strings.TrimSpace(strings.Replace(*(update.Text), "/unsplash", "", 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
author := user.FirstName
|
author := user.FirstName
|
||||||
|
|
Reference in a new issue