From 8a2e86663d5c3cadab86c565658f6a736cd27119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Mon, 24 Oct 2022 16:03:38 +0200 Subject: [PATCH] Set "disable_notification" to true when pinning messages --- src/bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.rs b/src/bot.rs index 05c0eb6..73de19a 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -170,7 +170,7 @@ pub async fn fetch_and_announce_appointment( } let mut pin_message = bot.pin_chat_message(announcement.chat.id, announcement.id); - pin_message.disable_notification = Some(false); + pin_message.disable_notification = Some(true); let pin_sucessful = pin_message.await.is_ok(); chat_info.next_appointment = Some(appointment.clone());