(new): v1.2 release
Golang lint / lint (push) Successful in 11m32s

This commit is contained in:
2026-08-19 14:58:25 +03:00
parent f03a081ed6
commit 29b208eeec
79 changed files with 7301 additions and 2060 deletions
+4 -1
View File
@@ -121,7 +121,9 @@ type Draft struct {
parseMode tgapi.ParseMode
entities []tgapi.MessageEntity
ID uint64
// ID uniquely identifies the draft within its provider.
ID uint64
// Message contains the current draft text.
Message string
}
@@ -221,6 +223,7 @@ func (d *Draft) Delete() {
// If the draft is empty, Flush() returns nil without calling the API.
func (d *Draft) Flush() error {
if d.Message == "" {
d.Delete()
return nil
}
if d.chatID == 0 {