🐛 Fixed markdown entities parsing in reply message on '/start'
This commit is contained in:
parent
63e4e594ce
commit
b396e46d26
|
@ -81,7 +81,7 @@ reply_reset:
|
|||
Or use /{{.CancelCommand}} for abort current operation.
|
||||
reply_start:
|
||||
other: |
|
||||
Hello, I'm the @{{.Username}}!
|
||||
Hello, I'm the [@{{.Username}}](tg://user?id={{.ID}})!
|
||||
I can create your personal pack with stickers from others packs.
|
||||
Without limits and installing. In any chat. For free.
|
||||
success_add:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
reply_start:
|
||||
other: |
|
||||
Hello, I'm the @{{.Username}}!
|
||||
Hello, I'm the [@{{.Username}}](tg://user?id={{.ID}})!
|
||||
I can create your personal pack with stickers from others packs.
|
||||
Without limits and installing. In any chat. For free.
|
||||
reply_add_sticker:
|
||||
|
|
5
start.go
5
start.go
|
@ -1,6 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
log "github.com/kirillDanshin/dlog" // Insert logs only in debug builds
|
||||
"github.com/toby3d/go-telegram" // My Telegram bindings
|
||||
)
|
||||
|
@ -13,7 +15,7 @@ func commandStart(msg *telegram.Message) {
|
|||
|
||||
if msg.HasArgument() {
|
||||
log.Ln("Received a", msg.Command(), "command with", msg.CommandArgument(), "argument")
|
||||
if msg.CommandArgument() == cmdAddSticker {
|
||||
if strings.ToLower(msg.CommandArgument()) == strings.ToLower(cmdAddSticker) {
|
||||
commandAdd(msg, false)
|
||||
return
|
||||
}
|
||||
|
@ -25,6 +27,7 @@ func commandStart(msg *telegram.Message) {
|
|||
reply := telegram.NewMessage(
|
||||
msg.Chat.ID, T("reply_start", map[string]interface{}{
|
||||
"Username": bot.Self.Username,
|
||||
"ID": bot.Self.ID,
|
||||
}),
|
||||
)
|
||||
reply.ParseMode = telegram.ModeMarkdown
|
||||
|
|
Loading…
Reference in New Issue