Add disable notification to pin message.

This commit is contained in:
Ceda EI 2018-04-05 11:23:32 +05:30
parent d8478eef11
commit d8b9afc8fc
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ function pin_message($message_id) {
global $bot_api; global $bot_api;
global $chat_id; global $chat_id;
$url = 'https://api.telegram.org/bot' . $bot_api . '/pinChatMessage'; $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( $options = array(
'http' => array( 'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'header' => "Content-type: application/x-www-form-urlencoded\r\n",