diff --git a/upload.go b/upload.go index 4983636..0c9c457 100644 --- a/upload.go +++ b/upload.go @@ -248,6 +248,10 @@ func (b *Bridge) sendMaxDirectFormatted(ctx context.Context, chatID int64, text } `json:"link,omitempty"` } + // format применяется только к тексту — при пустом тексте MAX отклоняет payload. + if text == "" { + format = "" + } body := msgBody{Text: text, Format: format} if attType != "" && token != "" { body.Attachments = []attachment{{