fix compilation error

This commit is contained in:
p0lunin 2020-02-01 21:07:13 +02:00
parent 92ccb49216
commit 4d4970f450

View file

@ -119,7 +119,7 @@ impl Update {
Some(&p.chat)
}
UpdateKind::CallbackQuery(q) => {
Some(&q.message?.chat)
Some(&q.message.as_ref()?.chat)
}
_ => None
}