From 4d4970f450a49d5c300c96a7f0065acedd5f8bc8 Mon Sep 17 00:00:00 2001 From: p0lunin Date: Sat, 1 Feb 2020 21:07:13 +0200 Subject: [PATCH] fix compilation error --- src/types/update.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/update.rs b/src/types/update.rs index 02f70977..31e6db9c 100644 --- a/src/types/update.rs +++ b/src/types/update.rs @@ -119,7 +119,7 @@ impl Update { Some(&p.chat) } UpdateKind::CallbackQuery(q) => { - Some(&q.message?.chat) + Some(&q.message.as_ref()?.chat) } _ => None }