mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-08 09:20:11 +00:00
Compare commits
No commits in common. "478b40d0ff7122d79df54b25a3118cfd4640f6e5" and "23800bb8928a39a568990b4a8dec42dbf240188b" have entirely different histories.
478b40d0ff
...
23800bb892
@ -50,7 +50,7 @@ builds:
|
|||||||
flags:
|
flags:
|
||||||
- -tags=tray
|
- -tags=tray
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X main.version={{.Env.JFA_GO_VERSION}} -X main.commit={{.ShortCommit}} -X main.updater=binary -H=windowsgui
|
- -s -w -X main.version={{.Env.JFA_GO_VERSION}} -X main.commit={{.ShortCommit}} -X main.updater=binary
|
||||||
goos:
|
goos:
|
||||||
- windows
|
- windows
|
||||||
goarch:
|
goarch:
|
||||||
|
@ -148,10 +148,7 @@ func (t *TelegramDaemon) Send(message *Message, ID ...int64) error {
|
|||||||
if message.Markdown == "" {
|
if message.Markdown == "" {
|
||||||
msg = tg.NewMessage(id, message.Text)
|
msg = tg.NewMessage(id, message.Text)
|
||||||
} else {
|
} else {
|
||||||
text := strings.ReplaceAll(message.Markdown, ".", "\\.")
|
msg = tg.NewMessage(id, strings.ReplaceAll(message.Markdown, ".", "\\."))
|
||||||
text = strings.ReplaceAll(text, "![", "[")
|
|
||||||
text = strings.ReplaceAll(text, "!", "\\!")
|
|
||||||
msg = tg.NewMessage(id, text)
|
|
||||||
msg.ParseMode = "MarkdownV2"
|
msg.ParseMode = "MarkdownV2"
|
||||||
}
|
}
|
||||||
_, err := t.bot.Send(msg)
|
_, err := t.bot.Send(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user