gotd: update to layer 224

This commit is contained in:
Tulir Asokan
2026-04-01 21:08:49 +03:00
parent 7630340ffc
commit 770b3b8d8c
77 changed files with 10606 additions and 703 deletions
+30
View File
@@ -221,3 +221,33 @@ func FormattedDate(s string, relative bool, shortTime bool, longTime bool, short
return nil
})
}
// DiffInsert formats text as DiffInsert entity.
//
// See https://core.telegram.org/constructor/messageEntityDiffInsert.
func DiffInsert(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.DiffInsert(s)
return nil
})
}
// DiffReplace formats text as DiffReplace entity.
//
// See https://core.telegram.org/constructor/messageEntityDiffReplace.
func DiffReplace(s string, oldText string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.DiffReplace(s, oldText)
return nil
})
}
// DiffDelete formats text as DiffDelete entity.
//
// See https://core.telegram.org/constructor/messageEntityDiffDelete.
func DiffDelete(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.DiffDelete(s)
return nil
})
}