some fixes and small changes

This commit is contained in:
2026-03-06 14:32:50 +03:00
parent 8b9a974da9
commit 7e12e0a9f9

View File

@@ -87,9 +87,9 @@ func (d *DraftProvider) NewDraft() *Draft {
} }
func (d *Draft) push(text string, escapeMd bool) error { func (d *Draft) push(text string, escapeMd bool) error {
if escapeMd { if escapeMd {
text += EscapeMarkdownV2(text) d.Message += EscapeMarkdownV2(text)
} else { } else {
text += text d.Message += text
} }
params := tgapi.SendMessageDraftP{ params := tgapi.SendMessageDraftP{
ChatID: d.chatID, ChatID: d.chatID,