Lists of commands

This commit is contained in:
2023-01-24 03:08:34 +03:00
parent e396d6a885
commit d035524ebc
2 changed files with 26 additions and 3 deletions

View File

@ -196,7 +196,10 @@ func (u *Update) Text() string {
if u.IsText() {
return u.Message.Text
}
return u.Message.Caption
if u.IsMessage() {
return u.Message.Caption
}
return ""
}
func (u *Update) Entities() []*echotron.MessageEntity {