some fixes and small changes

This commit is contained in:
2026-03-06 14:31:45 +03:00
parent 4dc172a3b5
commit 8b9a974da9
4 changed files with 60 additions and 39 deletions

View File

@@ -5,7 +5,6 @@ import (
"sync/atomic"
"git.nix13.pw/scuroneko/laniakea/tgapi"
"git.nix13.pw/scuroneko/laniakea/utils"
)
type draftIdGenerator interface {
@@ -88,7 +87,7 @@ func (d *DraftProvider) NewDraft() *Draft {
}
func (d *Draft) push(text string, escapeMd bool) error {
if escapeMd {
text += utils.EscapeMarkdownV2(text)
text += EscapeMarkdownV2(text)
} else {
text += text
}