From d8b9afc8fce43d7a8171f1feb73179e852241461 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Thu, 5 Apr 2018 11:23:32 +0530 Subject: [PATCH] Add disable notification to pin message. --- update_chain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_chain.php b/update_chain.php index bf3a53d..e13ade6 100644 --- a/update_chain.php +++ b/update_chain.php @@ -30,7 +30,7 @@ function pin_message($message_id) { global $bot_api; global $chat_id; $url = 'https://api.telegram.org/bot' . $bot_api . '/pinChatMessage'; - $post_msg = array('chat_id' => $chat_id, 'message_id' => $message_id ); + $post_msg = array('chat_id' => $chat_id, 'message_id' => $message_id, 'disable_notification' => 'true' ); $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n",