handletelegram: don't log presence updates
This commit is contained in:
@@ -972,6 +972,9 @@ func (t *TelegramClient) onUpdate(ctx context.Context, e tg.Entities, upd tg.Upd
|
|||||||
return t.onChat(ctx, e, update)
|
return t.onChat(ctx, e, update)
|
||||||
case *tg.UpdatePhoneCall:
|
case *tg.UpdatePhoneCall:
|
||||||
return t.onPhoneCall(ctx, e, update)
|
return t.onPhoneCall(ctx, e, update)
|
||||||
|
case *tg.UpdateUserStatus:
|
||||||
|
// ignored
|
||||||
|
return nil
|
||||||
default:
|
default:
|
||||||
zerolog.Ctx(ctx).Debug().Type("update_type", update).Msg("Unhandled update type")
|
zerolog.Ctx(ctx).Debug().Type("update_type", update).Msg("Unhandled update type")
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user