public function pinChatMessage($chatId, $messageId, $disableNotification = false)
    {
        return $this->call('pinChatMessage', [
            'chat_id' => $chatId,
            'message_id' => $messageId,
            'disable_notification' => $disableNotification
        ]);
    }
public function pinChatMessage($chatId, $messageId, $disableNotification = false)
    {
        return $this->call('pinChatMessage', [
            'chat_id' => $chatId,
            'message_id' => $messageId,
            'disable_notification' => $disableNotification
        ]);
    }
public function pinChatMessage ( $ chatId , $ messageId , $ disableNotification = false ) { return $ this -> call ( 'pinChatMessage' , [ 'chat_id' => $ chatId , 'message_id' => $ messageId , 'disable_notification' => $ disableNotification ] ) ; }
Use this method to pin a message in a supergroup.
The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

@param string|int $chatId Unique identifier for the target chat or username of the target channel
(in the format @channelusername)
@param int $messageId Identifier of a message to pin
@param bool $disableNotification

@return bool
Use this method to pin a message in a supergroup . The bot must be an administrator in the chat for this to work and must have the appropriate admin rights .