Added captions
This commit is contained in:
parent
c149e29dca
commit
3aeefc2b2d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue