Added captions

This commit is contained in:
Nefrace 2023-12-28 22:51:34 +03:00
parent c149e29dca
commit 3aeefc2b2d
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,10 @@ func (b *bot) Update(update *echotron.Update) {
userLeft(b, update)
return
}
if update.Message.Text != "" {
if update.Message.Text != "" || update.Message.Caption != "" {
if update.Message.Text == "" {
update.Message.Text = update.Message.Caption
}
res, err := b.GetChatMember(update.ChatID(), update.Message.From.ID)
if err != nil {
log.Println("Kicker 44: can't get user member: ", err)