v1.0.0 beta 6

This commit is contained in:
2026-03-02 00:08:26 +03:00
parent 2de46a27c8
commit 7101aba548
5 changed files with 21 additions and 7 deletions

View File

@@ -88,10 +88,15 @@ func (d *Draft) Push(newText string) error {
return err
}
func (d *Draft) Flush() error {
if d.Message == "" {
return nil
}
params := tgapi.SendMessageP{
ChatID: d.chatID,
ParseMode: d.parseMode,
Entities: d.entities,
Text: d.Message,
}
if d.messageThreadID > 0 {
params.MessageThreadID = d.messageThreadID